Skip to content

fix(harmonia): items-table text wraps at word boundaries in a bounded block (#6515) - #6516

Merged
delchev merged 1 commit into
masterfrom
fix/items-wrap-word-boundaries
Aug 4, 2026
Merged

fix(harmonia): items-table text wraps at word boundaries in a bounded block (#6515)#6516
delchev merged 1 commit into
masterfrom
fix/items-wrap-word-boundaries

Conversation

@delchev

@delchev delchev commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Closes #6515. Follow-up to #6494 after live feedback: overflow-wrap: anywhere on 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 anywhere deliberately (width-bounded bubble, arbitrary tokens). Template-only — reaches apps on the next regeneration.

🤖 Generated with Claude Code

… 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>
@delchev
delchev merged commit ace3f7f into master Aug 4, 2026
10 checks passed
@delchev
delchev deleted the fix/items-wrap-word-boundaries branch August 4, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Items-table wrapping breaks words at every character - the text column collapses to one syllable per line

1 participant