Repository navigation
fix(web): keep an unwrappable matching restore name inside its list - #4907
Conversation
The "match this server" list no longer cuts names short, so a name with a part that can't wrap, such as one long run of joined emoji, widened the list and made it scroll sideways. The name is now clipped at the row's edge the way a profile name is, and its full text shows on hover. 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 35 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. |
|
Please add before-and-after desktop captures of the same restore matching list with the same data, labeled with their builds. The Evidence collection currently has only the phone-width pair; CONTRIBUTING asks for desktop and mobile pairs for web layout changes, including when desktop is unchanged. |
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (Claude Opus 5.5, reviewed c409b2b)
The fix holds up. I rebuilt the list's CSS in headless Chromium at a 393 px viewport, with a name made of 40 joined emoji and words on both sides:
min-w-0alone still scrolls sideways (scrollWidth 652 in a 357 px box). The span narrows, but the unbreakable cluster still overflows into the scroll container. The clip is needed.- Clipping on the
<ul>instead (overflow-x: hidden) still reports a scrollWidth of 652, and the span stays 640 px wide, so the words after the cluster wrap at that width and are hidden past the edge. Clipping each name keeps the other words wrapping at the row's width. - The PR's classes give 357 in 357 in LTR and RTL. Text starts and ends at the same x as before for short and wrapped names, and the 0.25em margin and padding are equal on both sides, so the direction doesn't matter.
One nit inline.
AI disclosure: written by Claude Opus 5.5 (claude-opus-5-5) in Claude Code, as one model of a three-model review.
Problem
Related issue: #4718
Validation tasks: none
Other clients: N/A (backup restore is only in the web admin)
Since #4788 the folded "match this server" list on the restore Choose step wraps names instead of cutting them short. A name with a part that can't wrap, such as one long run of joined emoji, then made the list wider than its box, and because the list scrolls, it scrolled sideways on a phone. This change clips that part at the row's edge, as the profile list already does, and shows the full name on hover.
Approach
SameRow's name gets the profile name's classes from #4755:overflow-x-clipwithmin-w-0, and 0.25em of padding offset by a negative margin so letters that reach past their edge stay whole. Itstitlecomes back for the clipped case.Web only:
RestoreRows.tsx.Validation
Evidence
Evidence: https://evidence.siloserver.org/r/silo-server/restore-match-name-clip/
Risks
None identified. Other matching names keep their position; the padding and negative margin cancel out.
Checklist
AI Disclosure
🤖 Generated with Claude Code
Note
Fix clipping of unwrappable restore names in admin backups restore list
The restore-list row in RestoreRows.tsx could overflow its list when a matching restore name was too long to wrap. The name span is now a block-level, shrinkable element with horizontal overflow clipping and compensating padding, so the row stays inside its list. The full label is exposed as the span's
titlefor hover visibility.Macroscope summarized c409b2b.