Repository navigation
fix(web): stop page titles hyphenating words that fit - #5031
Conversation
…lugin title on narrow screens Page titles got automatic hyphenation in #4974. With balanced titles it also split words that fit on their own line: Polish "Zaplanowa- / ne zadania" on Scheduled tasks and "Aktywno- / ść Autoscan" on Autoscan Activity, which wrapped between words before. Titles now break inside a word only when that word can't fit on a line by itself. The plugin title's column kept a fixed 220 px minimum, so on a window narrower than about 270 px a long plugin name still ran past the page edge. The minimum is now capped at the available width. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 44 minutes. View limit details
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (web layout fix; the Apple, Android and Roku apps lay out their own titles)
#4974 gave admin and settings page titles automatic hyphenation so a word wider than its column wouldn't be cut off. Because these titles are balanced across their lines, the browser also hyphenated words that fit on their own line. On a 300 px phone, Polish "Zaplanowane zadania" (Scheduled tasks) now shows as "Zaplanowa- / ne zadania", and "Aktywność Autoscan" as "Aktywno- / ść Autoscan". Both wrapped between words before #4974.
Separately, the plugin page title still ran past the page on a very narrow window. Its column keeps a fixed 220 px minimum, so at a 230 px window with a large browser font the column stays wider than the page.
After this change, a title breaks inside a word only when that word can't fit on a line by itself, and the plugin title fits at any width.
Approach
hyphens-autoand keepbreak-words, so a word wider than the line still breaks at the column edge and never gets cut off.min(220px, 100%), so it never exceeds the space it has.Dropping hyphenation brings back a plain break for words too wide for the line. At 360 px with a 24 px browser font, the German restore title ends "wiederherstelle / n" instead of "wiederher- / stellen". I chose that over hyphenation because it only happens to a word that would otherwise be cut off. Hyphenation splits ordinary titles that fit. A hyphenation limit (
hyphenate-limit-chars: 6 3 3) fixed "Aktywność" but not "Zaplanowane", so it's no substitute.Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/page-title-hyphenation/
Risks
None identified.
overflow-wrap: break-wordchanges nothing for a title whose words fit their line, and the plugin column's minimum changes only when the window is narrower than about 270 px.Checklist
Council review
This continues the follow-up run from the #4938 review that produced #4974, so each round has one member instead of the council. The background review of #4974 found both problems here; #4974 merged before its fixes landed.
Background review: round 1, reviewing 02bdc7f
Visual review: 1 round, captures from 02bdc7f
Answered: the column-edge breaks "wiederherstelle / n" and "Loginsession / er" are the accepted cost described in Approach. Sol's alternative for German, a shorter restore heading with the date in the subtitle, is a translation change outside this fix. Three other things it noticed look the same before and after, so they aren't part of this change: the plugin page's update control at 230 px, the top bar's controls at large text sizes, and the restore summary strip.
AI Disclosure
🤖 Generated with Claude Code
Note
Remove automatic hyphenation from page title headings
Removes the hyphenation utility from the title heading in PageHeader.tsx. Page titles stop hyphenating words that already fit the heading width. The rest of the component is unchanged.
Macroscope summarized 02bdc7f.