fix(harmonia): items-table text wraps at word boundaries in a bounded block (#6515) - #6516
Merged
Merged
Conversation
… block, not at every character (#6515) The #6493 wrap used overflow-wrap:anywhere on the cell, which lets the browser break at ANY character - the column's min-content collapses to a single character and the auto table layout hands the Name column almost no width, rendering a sentence-long item name as a vertical column of syllables. Text cells now render their content in a block with white-space:normal + overflow-wrap:break-word + max-width:28rem: break-word keeps min-content at the longest word (the column cannot collapse) and the cap stops one text column from hogging the table. Numeric cells keep nowrap + right alignment; the chat bubble keeps `anywhere` (width-bounded, arbitrary tokens). Applied to the line-items table and the three detail-panel tables. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Closes #6515. Follow-up to #6494 after live feedback:
overflow-wrap: anywhereon the cell reduces the column's min-content to one character, so the auto table layout starves the Name column and a long item name renders one syllable per line.The cell content now renders in a bounded block —
white-space: normal; overflow-wrap: break-word; max-width: 28rem— so:Numeric cells keep nowrap + right alignment. Applied to the document line-items table and the three shared detail-panel tables; the chat bubble keeps
anywheredeliberately (width-bounded bubble, arbitrary tokens). Template-only — reaches apps on the next regeneration.🤖 Generated with Claude Code