Repository navigation
fix(web): move the restore restart notice under its badge when a translation can't fit beside it - #4724
Conversation
…eside it On the restore Choose step, a settings item that needs a restart shows a Restart badge with "Applies after a restart." beside it. The sentence was an anonymous flex item, so it couldn't shrink below its longest word. In Finnish at Silo's large and x-large text sizes on a phone, the badge label is wide and "uudelleenkäynnistyksen" ran past the row, where the app shell clipped it. The row now wraps. When the sentence doesn't fit beside the badge on one line, it moves under the badge and wraps at spaces. When it fits, it stays beside the badge on the badge label's baseline, as before. Closes #4695 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ines When the restart notice's sentence moves under its badge, sit it 4 px below the badge instead of 8 px, like the other wrapping rows on the restore screens, so it reads as the badge's caption rather than a separate detail. Balance its lines so a final word doesn't sit alone. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
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 2 minutes. View limit details
|
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:
|
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. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Problem
Closes #4695
Related issue: N/A
Validation tasks: none
Other clients: N/A (the backup restore screen exists only in the web app)
On the backup restore Choose step, a settings item that needs a restart shows a Restart badge with "Applies after a restart." beside it. In Finnish at Silo's large and x-large text sizes on a phone, the badge label is wide and the sentence couldn't shrink below its longest word, "uudelleenkäynnistyksen". At 393 px it ran 9 px past its row at large and 53 px at x-large; at 320 px and x-large, 126 px. The app shell clipped it at the screen edge.
This change lets the notice row wrap. When the sentence can't fit beside the badge on one line, it moves to its own line under the badge, with whole words. When it fits, it stays beside the badge on the badge label's baseline, as #4694 set up.
Approach
The notice row gets
flex-wrap, a 4 px gap when it wraps (the other wrapping rows on the restore screens use the same), and balanced lines so a final word doesn't sit alone. The settings diff in the same file already wraps its key and Restart badge the same way.The issue also suggested
min-w-0withoverflow-wrap: anywhereon the sentence. That keeps the sentence beside the badge, but the Finnish badge is about 190 px wide at x-large, so the sentence would get a column of about 118 px at 393 px and 45 px at 320 px, and words would break mid-word into short pieces. With wrapping, no shipped translation needs a mid-word break at the standard browser font size: Finnish has the longest word, and the sentence stays inside its row at every width measured.Validation
main: the sentence ran past its row in Chromium, Firefox, and WebKit at the sizes above.Evidence: https://evidence.siloserver.org/r/silo-server/issue-4695/
Risks
None identified. Short translations such as English look the same as before at phone and desktop widths, except English at 320 px and x-large, which now puts the sentence on one line under the badge instead of two lines beside it.
Follow-ups
maintoo, and fix(web): show restore item and account names in full in narrow rows #4715 fixes it.maintoo (worse there), and [bug] Restore: with larger browser text, the summary panel widens the list past a phone screen #4730 tracks it; its fix touches this notice's line, so it follows this PR.Checklist
Council review
Background review: round 1, reviewed 7a00aae
Visual review: 2 rounds, captures from 7a00aae
Fixed in round 1: the sentence sat 8 px under the badge, as far as the card below, and Finnish left "jälkeen." alone on its last line. It now sits 4 px under the badge with balanced lines. Answered: the reviewers also noted that the same Restart badge appears on the row and again in its settings card, and that the desktop settings card wraps the badge under the key. Both look the same on
mainand are outside this fix. The before captures come from a different host than the after captures, so where the layout didn't change, font rendering differs slightly between them.Background review: Opus found nothing. Sol and Gemini found that with a larger browser font (20–24 px), the Restart badge and the end of the notice still run past a phone screen. Re-measured against
main, the same trigger is worse there, and the cause is the summary panel's width and the badge's single word, so it moved to #4730 with both reviewers' measurements. Gemini couldn't post its review because of a GitHub rate limit; its one finding is the one above.AI Disclosure
🤖 Generated with Claude Code
Note
Fix restore restart notice wrapping in
RestoreRows.tsxThe restart-required message in restore rows now wraps onto multiple lines when it cannot fit beside its badge. It uses a wrapping flex layout with separate horizontal and vertical gaps, plus balanced text wrapping, in RestoreRows.tsx.
Macroscope summarized 73b3979.