Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxHighlight within a table can overflow the table row #615

Open
Redbot opened this issue Apr 19, 2023 · 0 comments
Open

SyntaxHighlight within a table can overflow the table row #615

Redbot opened this issue Apr 19, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Redbot
Copy link

Redbot commented Apr 19, 2023

Describe the Bug

Including <syntaxhighlight> tags in a table cell can cause overflow, spilling over the contents of the page when scrolling.

Steps to reproduce the behavior:

  1. Add the following to a sandbox on starcitizen.tools, and then view in a slim (vertical) window:
===syntaxhighlight overflow===
{| class="wikitable" 
|-
!Column 1<br />
!Column 2<br />
|-
|Row 1
| <syntaxhighlight lang="ini">
Buffs3=Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Buffs3=Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium
Buffs3=Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur?
 </syntaxhighlight>
|}

Expected Behavior

On Vector and other MW skins, the cell is properly word wrapped.

Fix

See pull request for a possible fix, which I've tested locally.

@Redbot Redbot added the bug Something isn't working label Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant