Repository navigation
fix(web): fit wrapped Markdown tables to the available width - #341
Merged
Merged
Conversation
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.
Note
Wrapped tables fit the document width; dense tables can switch to horizontal scrolling without truncating values.
What Changed
Wrapped Markdown tables now use the available width and let rows grow with their content. The footer button keeps the original Expand table cells / Collapse table cells labels and icons. Collapsed mode keeps complete values on one line, accessible with horizontal scrolling and visible scrollbars. Very dense tables can still overflow to keep headings readable.
Why
Prose-heavy tables could extend beyond the document and fade out the last column even with wrapping enabled. Remove the table's unconditional intrinsic minimum width and the column-width measurements that prevented it from shrinking after toggling. This applies to the shared web/desktop Markdown renderer, including messages and file previews; the native mobile renderer is unchanged.
Fork ledger and upstream overlap
The
markdown-table-layoutledger entry records the behavior to preserve, exact watched paths, verification limits, and retirement conditions. Upstreampingdotgg/t3code#8868exposes scrollbars only; the assessed upstream commite8ca3a82806dff84438d5aba66b693468f7ca426still locks expanded column widths and truncates collapsed cells. The entry records this as partial overlap with review needed.Validation
UI Changes
The same synthetic document is shown in a 1024 × 768 viewport, with the sidebar hidden and the document panel maximized (848-pixel content width). All screenshots start at the left edge of each table. The main table renderer is unchanged between the PR base and main (
a2ed7f7dc); the PR screenshots usebf05cf93d.Both implementations retain expanded and collapsed modes with the same labels and icons. Collapsed columns can be wider in this PR because their contents are no longer truncated.
Checklist
Written by an agent (Codex, GPT-6).