Skip to content

fix(web): move the restore restart notice under its badge when a translation can't fit beside it - #4724

Merged
Quick104 merged 3 commits into
mainfrom
fix/issue-4695-restart-notice-overflow
Nov 21, 2026
Merged

Quick104 merged 3 commits into
mainfrom
fix/issue-4695-restart-notice-overflow

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

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-0 with overflow-wrap: anywhere on 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

  • Reproduced on a Silo dev deployment built from main: the sentence ran past its row in Chromium, Firefox, and WebKit at the sizes above.
  • On this branch, measured 17 cases across Chromium, Firefox, and WebKit at 320, 393, 820, and 1280 px, in Finnish and English, at default, large, and x-large text sizes. Nothing runs past its row. Wherever the sentence still sits beside the badge, its baseline matches the badge label's to 0 px in all three engines.
  • Typecheck, ESLint, and Prettier pass, and the admin backups tests pass.

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

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.

Council review

Background review: round 1, reviewed 7a00aae

Member Round 1
Sol (gpt-6.2-sol, xhigh) 8/10
Opus (claude-opus-5-5, high) 9/10
Gemini (gemini-4-neon, xhigh) 8.5/10

Visual review: 2 rounds, captures from 7a00aae

Member Round 1 Round 2
Sol better, 8/10 better, 9/10
Opus better, 8/10 better, 8/10
Gemini unavailable better, 8/10

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 main and 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

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code; T3 Code delegated tasks for the council (Codex, Claude, Antigravity)
  • Model(s): claude-opus-5-5 (implementation); gpt-6.2-sol, claude-opus-5-5, gemini-4-neon (council)
  • Involvement: Fully AI-generated; a maintainer reviews it before merge
  • Adversarial review: code review at xhigh (three finders, a 1.0 validation check, and a sweep) asked for the 4 px gap when the row wraps, which this PR adopts. Its two overflow concerns (a word that can't break, and a badge that can't shrink) don't occur at the standard browser font size; with a 24 px browser font they come from the page layout and are tracked in [bug] Restore: with larger browser text, the summary panel widens the list past a phone screen #4730. The plan round was skipped because the fix is one class at the root cause, and a simplify pass found nothing to change. Council results are in the Council review section above.

🤖 Generated with Claude Code

Note

Fix restore restart notice wrapping in RestoreRows.tsx

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

Quick104 and others added 2 commits November 20, 2026 19:40
…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]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Nov 21, 2026
@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 2 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: 47a90dc2-e876-43b3-999d-c368ee6b4c71
Commits

Reviewing files that changed from the base of the PR and between 5be6082 and 73b3979.

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 ❌

@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-21T01:25:46.129690Z 73b3979 New commits
🔒 Security Review ✅ Completed 2026-11-21T01:27:03.188305Z 73b3979 New commits
ℹ️ 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 impact: polish Annoyance, cosmetic, or nice-to-have priority: P2 Limited scope, workaround exists, or polish triaged High-confidence review completed; does not mean fixed, validated, or accepted for release. labels Nov 21, 2026

@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 (gpt-6.2-sol, reviewed 7a00aae)

AI-assisted review by gpt-6.2-sol via Codex in T3 Code.

@Quick104
Quick104 merged commit df37bfc into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/issue-4695-restart-notice-overflow branch November 21, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 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. triaged High-confidence review completed; does not mean fixed, validated, or accepted for release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Restore: a long word in an item's restart notice runs past the screen edge on phones

1 participant