Skip to content

fix(web): keep an unwrappable matching restore name inside its list - #4907

Merged
Quick104 merged 1 commit into
mainfrom
fix/restore-match-name-clip
Nov 21, 2026
Merged

Quick104 merged 1 commit into
mainfrom
fix/restore-match-name-clip

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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-clip with min-w-0, and 0.25em of padding offset by a negative margin so letters that reach past their edge stay whole. Its title comes back for the clipped case.

Web only: RestoreRows.tsx.

Validation

  • Not on a live server: a temporary dev-only route rendered the real Choose step with fixture data, including a matching collection named by 40 joined emoji. With the list open at 393 px, its scroll width was 652 px in a 359 px box before (it scrolled sideways) and 359 px after, in English and Arabic. At 1440 px it fit before and after. The route is not in this branch.
  • Typecheck, eslint and prettier on the changed files: pass.

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

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

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 title for hover visibility.

Macroscope summarized c409b2b.

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]>
@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 35 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: 774bc72e-0e0f-44fd-b676-a527472922f3
Commits

Reviewing files that changed from the base of the PR and between b300880 and c409b2b.

Files selected for processing: 1

  • web/src/pages/admin-backups/RestoreRows.tsx
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@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 the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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-21T05:02:29.549806Z c409b2b PR opened
🔒 Security Review ✅ Completed 2026-11-21T05:04:56.271058Z c409b2b 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-triage silo-triage Bot added bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish labels Nov 21, 2026
@silo-triage

silo-triage Bot commented Nov 21, 2026

Copy link
Copy Markdown

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 Quick104 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-0 alone 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.

@Quick104
Quick104 merged commit 9d810b6 into main Nov 21, 2026
25 checks passed
@Quick104
Quick104 deleted the fix/restore-match-name-clip branch November 21, 2026 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working evidence-required Needs before-and-after evidence before the Evidence check passes 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