Repository navigation
fix(web): keep the restore progress spinner on the first line of wrapped status text - #4746
Conversation
…ped status text The Run step's status row centered its spinner on the whole status text and let flexbox squeeze it. When the text wraps, as Spanish "stopping" does at 320 px and most translations do at the x-large text size, the spinner sat between the lines at a reduced width. The row now aligns to the top and holds the spinner in a box one line tall that doesn't shrink, as the other restore rows do. 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 23 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. |
…'t fit With the spinner no longer shrinking, a status word wider than the space beside it ran past the panel. At 320 px with a 24 px browser font and the x-large text size, Russian "Восстановление…" was cut off. The status text may now break inside a word when nothing else fits; rows whose words fit are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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:
|
…markers #4723 gave the restore checkboxes and outcome icons a box at least one line tall (min-h-lh). The progress spinner's box now uses the same class. Its line is always taller than the spinner, so the layout doesn't change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 (the backup restore screen exists only in the web admin)
While a backup restore runs, the Run step shows a status row: a spinner and "Restoring…", "Waiting to start…", or "Stopping after the current item…". When that text wraps, the spinner centered on the whole text, so it sat between the lines, and flexbox squeezed it narrower than its size. At 320 px the "stopping" text wraps in 12 of the web app's 22 languages (German also at 390 px). At Silo's x-large text size it wraps in all 22, English included.
With this change the spinner sits level with the first line of the status text and keeps its full size. Rows that fit on one line don't move.
Approach
The row aligns its items to the top, and the spinner sits in a box one line tall that doesn't shrink. It's the pattern the other restore rows already use for their chevrons, checkboxes, and outcome icons (#4694, #4723), and the box is
min-h-lhlike #4723's outcome icon in the same file. Because the spinner no longer shrinks, the status text may break inside a word when a word can't fit beside it, as can happen with a large browser font at phone width.Validation
RestoreRuncomponent in the admin page frame with a job in each state. The route isn't part of this change.main, measured in Chromium across the 22 shipped languages at 320 and 390 px, at default and x-large text, in all three states: 55 of 264 rows wrap. In each one the spinner's center sat 10 px (default text) or 13 px (x-large) below the first line's center, and the spinner was squeezed to as little as 11 px wide instead of 16 or 20 px.mainsome of those labels already overflowed there, with the spinner squeezed to nothing. At normal sizes this changes nothing: all 264 rows measure the same with and without it.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/restore-run-spinner/
Risks
None identified. The change touches one row on the restore Run step.
Follow-ups
Found in review, present before this change:
Checklist
Council review
Background review: round 1 reviewed 6257272, round 2 reviewed ff80360
Fixed: Sol's finding that a long word could run past the panel with a large browser font, in ff80360. Answered: Sol's round-2 note that at 360 px with a 24 px browser font and x-large text, French "Restauration…" now puts its ellipsis on a second line. At that size the word doesn't fit beside the spinner, so it either overflows (cut off in Russian, German, and Ukrainian) or breaks. Breaking before the ellipsis keeps the word whole. Gluing the ellipsis to the last letter, as suggested, would split the word itself.
Visual review: 2 rounds, captures from 6257272 (the current head measures the same at the sizes captured)
Round 2 added the Arabic, three-line, and spinning captures the first round asked for. Answered: Gemini's report that one-line spinners moved up at x-large text didn't hold up; those panels are pixel-identical before and after. The reviewers' other findings are present on
mainand outside this row: an orphaned last word when the status wraps, the progress bar's faint track, the faint disabled Stop button, and the pseudo-locale's unbroken padding overflowing the progress note.AI Disclosure
🤖 Generated with Claude Code