Skip to content

fix(web): stop page titles hyphenating words that fit - #5031

Merged
Quick104 merged 1 commit into
mainfrom
fix/page-title-hyphenation
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/page-title-hyphenation

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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

  • The page header, plugin and Signed-in sessions titles drop hyphens-auto and keep break-words, so a word wider than the line still breaks at the column edge and never gets cut off.
  • The plugin title's column minimum becomes 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

  • Live, on a Silo dev deployment built from main (3a8bd22), then rebuilt with this change (Chromium). Before: Polish Scheduled tasks and Autoscan Activity at 300 px hyphenated as above, and the plugin column at a 230 px window with a 24 px font ended 14 px past the window edge. After: both Polish titles wrap between words, and the plugin column is 182 px wide and ends inside the window. The German restore and Danish sessions titles with a word too wide for the line break at the column edge and stay inside it. Every other capture (restore, sessions and plugin pages at 300 to 1440 px) measures the same as before, with no console errors.
  • Web tests for the components that render these titles, typecheck, ESLint and Prettier: pass.
  • No test added. The change is CSS class names, and the before and after measurements are the proof.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/page-title-hyphenation/

Risks

None identified. overflow-wrap: break-word changes 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

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or how I checked a change nobody sees.

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

Member Round 1
Sol (gpt-6.2-sol, high) running

Visual review: 1 round, captures from 02bdc7f

Member Round 1
Sol (gpt-6.2-sol, high) better, 8/10

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

  • Harness: Claude Code, launched from T3 Code
  • Tool(s): Claude Code, T3 Code, Codex (review member), headless Chromium for captures
  • Model(s): claude-opus-5-5 (implementation), gpt-6.2-sol (visual and background review)
  • Involvement: Fully AI-generated; the agent verified it on a sandbox, and no person has reviewed it yet
  • Adversarial review: Sol's background review of fix(web): wrap a page title's long word instead of cutting it off #4974 found the hyphenation and plugin-column problems this fixes. No plan check ran, because the change removes one class and caps one minimum width. Code-review was a single pass by the implementer over the changed lines, with no findings: the capped minimum resolves against the header row's width, and the live 230 px capture shows it applied. See Council review.

🤖 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.

…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>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a774407c-830b-4400-a639-9c09df236b44
Commits

Reviewing files that changed from the base of the PR and between 8ae4f4f and 02bdc7f.

Files selected for processing: 3

  • web/src/components/page/PageHeader.tsx
  • web/src/components/sessions/LoginSessionsPanel.tsx
  • web/src/pages/AdminPluginDetail.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-21T11:16:09.083827Z 02bdc7f PR opened
🔒 Security Review ✅ Completed 2026-11-21T11:17:18.303922Z 02bdc7f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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

silo-kody Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@silo-triage silo-triage Bot added bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026
@Quick104
Quick104 merged commit d9c39f7 into main Nov 21, 2026
19 checks passed
@Quick104
Quick104 deleted the fix/page-title-hyphenation branch November 21, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant