Skip to content

Stop highlighted text from wrapping mid-word - #23152

Merged
tidy-dev merged 1 commit into
desktop:developmentfrom
DylanDevelops:ravel/inline-code-wrapping-visual-fix
Nov 10, 2026
Merged

tidy-dev merged 1 commit into
desktop:developmentfrom
DylanDevelops:ravel/inline-code-wrapping-visual-fix

Conversation

@DylanDevelops

Copy link
Copy Markdown
Contributor

Closes #23110

Description

Highlighted names in the app used word-break: break-all, which breaks a line between any two characters. Even short words got split: in the “Upstream already exists” dialog, upstream wrapped as “upstre am”.

This PR switches to overflow-wrap: anywhere. Long strings like URLs and paths still wrap instead of overflowing, but only when the whole word doesn’t fit on its own line, so short words stay together. The change is in the shared _ref.scss style, so it applies everywhere Ref is used.

Screenshots

Before:
Screenshot 2026-11-09 at 6 17 18 PM

After:
Screenshot 2026-11-09 at 6 16 58 PM

Release notes

Notes: [Fixed] Highlighted names and paths in dialogs no longer break in the middle of short words

@DylanDevelops
DylanDevelops requested a review from a team as a code owner November 10, 2026 02:21
@DylanDevelops
DylanDevelops requested review from babakks and a balanced review from Copilot November 10, 2026 02:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@github-actions github-actions Bot added external Pull request originating outside of the Desktop core team needs-triage ready-for-review Pull Requests that are ready to be reviewed by the maintainers and removed needs-triage labels Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your pull request! While it doesn't meet all of our standard requirements, it appears to be a small, focused contribution and has been routed to the team for review.

Note: We still encourage linking to an issue with the help wanted label when possible, as it helps us prioritize and track contributions.

@tidy-dev tidy-dev left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💖

@tidy-dev
tidy-dev enabled auto-merge November 10, 2026 02:22
@tidy-dev
tidy-dev merged commit edcf9a4 into desktop:development Nov 10, 2026
16 checks passed
@DylanDevelops
DylanDevelops deleted the ravel/inline-code-wrapping-visual-fix branch November 10, 2026 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external Pull request originating outside of the Desktop core team ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inline code‘s mid-word line-crossing

3 participants