Repository navigation
fix(web): keep the restore chevrons and restart badge on the first line - #4694
Merged
Merged
Conversation
…of wrapped text On the restore "Choose" step, a disclosure button whose label wraps (a long library name over its group, "N match this server" in a longer translation) centered its chevron on the whole label, and the button's default text-align centered each wrapped line. An item's restart notice did the same with its Restart badge when the sentence wrapped (Finnish or Polish at phone width). Each marker now stays level with the first line, and wrapped labels start flush with it; one-line rows keep their position. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The restart notice lowered its sentence by a copy of the Restart badge's padding and border, which would drift if the badge changed. Make the badge's label its baseline (it was the icon's bottom edge) and align the notice on baselines instead. The badge looks the same everywhere it appears. 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:
|
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. |
Closed
3 tasks done
Contributor
4 tasks done
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (the backup restore screen exists only in the web admin)
On the backup restore "Choose" step, two markers drifted off the first line of their text when that text wrapped. A library group heading with a long library name wraps at phone width: its disclosure chevron centered on the whole label, and the button's default
text-align: centercentered each wrapped line. An item's restart notice did the same with its Restart badge when the sentence wrapped, as it does in Finnish at phone width. #4680 fixed the same problem for the never-restored lock and the blocked-group dot and didn't touch these two.This change keeps each marker level with the first line of its text and starts wrapped labels flush with it. Rows that fit on one line don't move.
Approach
Disclosurenow aligns its content to the top and starts text at the leading edge. Its chevron sits in a box one line tall, the pattern the #4680 review settled on. The fix covers every disclosure on the backup screens, including the warning details' "Show the accounts" and "Show all N".The restart notice now aligns the badge and its sentence on their text baselines.
RestartBadgeused to take its baseline from the bottom edge of its icon. It now takes it from its label, so the label and the first line of the sentence share a baseline. The badge renders the same in the admin settings, where it sits in centered rows. A wrapped notice grows 3 px, because its sentence now starts level with the badge's label instead of at the badge's top edge.The never-restored lock and blocked-group dot from #4680 are unchanged.
Validation
main, in a backup whose library has a long name and whose settings item needs a restart, at phone width in English and Finnish. The wrapped library heading's chevron sat 10.5 px below its first line, and its two lines started 84 px apart. The Finnish restart badge sat 16.5 px below the first line of its three-line sentence.mainon the machine used here: its Node 26 defines a globallocalStoragethat hides jsdom's. CI runs Node 24.Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/restore-wrapped-markers/
Risks
Disclosureis used only on the backup screens. Every disclosure there gets the new alignment, including "N match this server", "Show them", and the warning details' "Show the accounts" and "Show all N", none of which wrapped in the cases tested.RestartBadgeis shared with the admin settings pages. Its baseline now comes from its label, which changes nothing where it sits in a centered row, as it does everywhere today.Follow-ups
Found in review, present before this change:
Checklist
Council review
Background review: round 1, reviewed 49779a5
Visual review: 2 rounds, captures from 49779a5
Background review: Opus and Gemini found nothing in the diff. Sol found that an unbreakable library name can push the heading's count past a 360 px screen at x-large text. That overflow is on
maintoo: there the chevron could shrink and absorb a borderline case. It went to the count follow-up below, since its fix is on the same lines. Opus's open question, whether WebKit and Firefox align the badge the same way, was checked: they match Chromium.Answered: wrapped rows grow 1 to 3 px, which is intended; a reported 1 to 2 px chevron shift on one-line rows didn't hold up, since those captures are byte-identical. The reviewers' other findings were present before this change; the defects among them are listed under Follow-ups.
AI Disclosure
🤖 Generated with Claude Code