fix(ui): prevent long messages from overflowing chat bubbles#1590
Conversation
|
Thanks — the CSS logic is right. I traced the cascade for both user and assistant messages:
One blocker, plus two follow-on notes. Blocker — dashboard not touched, symmetry with #1588 broken The same vulnerability lives in Please mirror the same 16 lines into Follow-on notes (optional but recommended in the same revision)
Push a fixup with the dashboard parity (and optionally the cleanups) and I'll merge. |
072a91e to
4fba955
Compare
|
Thanks for the review. I pushed an update that rebases on latest main, mirrors the wrapping rules into Verified with |
What
Updates the desktop and dashboard message styles so long unbroken user-visible text, such as Windows paths, URLs, and long tokens, wraps inside chat bubbles instead of stretching the layout.
Changes
main.desktop/src/styles.cssanddashboard/src/styles.css.white-space: pre-wraprule added by fix(ui): preserve user message newlines #1588, since.msg-textnow carries that behavior directly.word-break: break-wordusage and rely on the standardizedoverflow-wrap: anywhere.tests/user-message-newlines.test.tsso it checks the broader shared message-text rules instead of the removed user-specific selector.Verification
npm run verify