ui: scroll wide tables inside their own box on narrow screens#64
Merged
Conversation
Markdown tables wider than the viewport (e.g. the transform ops matrix) forced the whole page to scroll horizontally on mobile. A render-table hook now wraps every table in a .table-wrap scroll container; the border + radius move to the wrapper so the frame stays put while the table scrolls under it. Desktop rendering is unchanged.
|
Preview deleted (PR closed). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Markdown tables wider than the viewport forced the whole page to scroll horizontally on mobile — on
/networking/transform/the document was 677px wide in a 390px viewport, cutting off the navbar and content.A
render-table.htmlmarkup hook now wraps every Markdown table in a.table-wrapscroll container: wide tables scroll inside their own box, the page never scrolls sideways. The border + radius move from the table to the wrapper, so the rounded frame stays put while the table scrolls under it. No content changes — the hook covers all Markdown tables (there are no raw-HTML tables incontent/).Before / after (390px, /networking/transform/ ops matrix)
Desktop is unchanged (border/radius on the wrapper renders identically):
Verified
document.scrollWidth677 → 390 on/networking/transform/;/access/roles/unaffected./access/roles/before/after screenshots pixel-compared — no visible change.