Skip to content

chore(ui): drop redundant overflow-wrap from inherited descendants#1675

Merged
esengine merged 1 commit into
mainfrom
chore/msg-text-overflow-wrap-dedupe
May 24, 2026
Merged

chore(ui): drop redundant overflow-wrap from inherited descendants#1675
esengine merged 1 commit into
mainfrom
chore/msg-text-overflow-wrap-dedupe

Conversation

@esengine

Copy link
Copy Markdown
Owner

Summary

overflow-wrap is an inherited CSS property, and .msg-text already declares overflow-wrap: anywhere (added in #1590). The duplicate declarations on .msg-text .markdown and .msg-text p cascade no behavior change — they only add noise.

Removed in both desktop/src/styles.css and dashboard/src/styles.css. The combined .msg-text X, .markdown X selectors (code, links) keep their declarations because the standalone .markdown case (used in cards, outside .msg-text) has no ancestor setting overflow-wrap.

Verification

  • npm run verify
  • npm exec vitest run tests/user-message-newlines.test.ts

overflow-wrap is an inherited property; .msg-text already declares it,
so the duplicate declarations on .msg-text .markdown and .msg-text p
are noise. The combined `.msg-text X, .markdown X` selectors keep their
declarations because the standalone .markdown case (cards) has no
ancestor setting overflow-wrap.
@esengine esengine merged commit 3555d36 into main May 24, 2026
4 checks passed
@esengine esengine deleted the chore/msg-text-overflow-wrap-dedupe branch May 24, 2026 12:26
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.

1 participant