Skip to content

fix(frontend): Wrap long unbroken text in rendered EditableTextField#264

Merged
spalmurray merged 1 commit into
mainfrom
spalmurray/fix-rendered-text-wrap
Jul 2, 2026
Merged

fix(frontend): Wrap long unbroken text in rendered EditableTextField#264
spalmurray merged 1 commit into
mainfrom
spalmurray/fix-rendered-text-wrap

Conversation

@spalmurray

@spalmurray spalmurray commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The rendered display in `EditableTextField` used `whitespace-pre-wrap` but no word-breaking, so a long unbroken string (e.g. a URL or token in an incident description) overflowed its container. The `<textarea>` soft-wraps by default, which is why the edit field looked fine but the rendered version did not.

Fix

Add break-words (overflow-wrap: break-word) to both rendered display paths (labeled/multiline layout used by Description, and the default layout used by Title etc.) so long tokens wrap within the container. Normal text wrapping is unchanged.

The rendered display used whitespace-pre-wrap but no word-breaking, so a
long unbroken string (e.g. a URL or token in an incident description)
overflowed its container. The textarea soft-wraps by default, which is
why the edit field looked fine but the rendered version did not.

Add break-words (overflow-wrap: break-word) to both display paths so long
tokens wrap within the container.
@spalmurray spalmurray marked this pull request as ready for review July 2, 2026 18:18
@spalmurray spalmurray requested a review from a team as a code owner July 2, 2026 18:18
@spalmurray

Copy link
Copy Markdown
Contributor Author
Screenshot 2026-07-02 at 14 25 44

tested and working as expected

@spalmurray spalmurray merged commit dbda81f into main Jul 2, 2026
38 checks passed
@spalmurray spalmurray deleted the spalmurray/fix-rendered-text-wrap branch July 2, 2026 18:28
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.

2 participants