Skip to content

fix(web): keep restore checkboxes and profile icons on the first line of wrapped text - #4723

Merged
Quick104 merged 4 commits into
mainfrom
fix/restore-markers-wrapped-rows
Nov 21, 2026
Merged

Quick104 merged 4 commits into
mainfrom
fix/restore-markers-wrapped-rows

Conversation

@Quick104

@Quick104 Quick104 commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Other clients: N/A (the backup restore screen exists only in the web admin)

Three rows in the backup restore flow put a marker in front of text that can wrap, and each centered the marker on the whole text block, so a wrapped row's marker sat between its lines:

  • the data type checkboxes under "For the chosen profiles, restore:" on the Choose step, whose labels wrap in the panel's narrow columns at laptop width and in longer translations;
  • the "I trust this backup; restore from it anyway" checkbox on the Review step, which wraps at phone width in English and Spanish;
  • each profile's outcome icon in the Run step's report, when a long profile name wraps.

#4694 fixed the same problem for the Choose step's chevrons and restart badge. This change keeps each of these three markers level with the first line of its text. Rows that fit on one line don't move.

Approach

Each row now aligns to the top, and its marker sits in a box at least one line tall, the pattern #4694 used. The checkbox and icon are sized in rem, so the data type and profile rows now set their text in rem too (0.8125rem, 13 px at the default size) with a unitless line height: text, line, and marker grow together at any browser font size, and a browser's minimum font size still spaces wrapped lines. The trust row uses its box's own unitless text-sm line height. The never-restored lock and blocked-group dot from #4680 use a margin instead; this change leaves them alone.

Three wrapping details changed with it:

  • A data type's count ("(7)") was a separate flex item, so a wrapped label left the count standing at the column's edge, and in German at laptop width it ran past the panel. The label is now one block, the count follows its last word, and text-wrap: pretty keeps the count from ending up alone on the last line where the browser supports it.
  • A profile's outcome ("· Created") was a separate column that split across lines beside a wrapped name. It now follows the name, and when it doesn't fit it moves to the next line as a unit, wrapping inside itself only when it can't fit on a line. The icon also no longer shrinks: it was squeezed to 6 to 8 px wide when the name wrapped.
  • The trust label took the shared Label's leading-none, so its wrapped lines sat 14 px apart. It now uses the 20 px line height of the paragraph above it.

Validation

  • Reproduced on a Silo dev deployment built from main, with a user whose 64-character profile name wraps and whose ratings and favorites give the data types counts. The restore set's authenticated flag was set to false in the browser to show the Review step's trust box, since a backup the server can't authenticate only arrives as an upload from another server. Wrapped data type checkboxes sat 10.5 to 20.25 px below their first line at 1024 px, the trust checkbox 7 px (18.25 px at x-large text), and profile icons 10.5 px (20.25 px at 320 px, 24.8 px at x-large text).
  • With this change, every marker sits within 0.75 px of its first line's center, the same offset as a one-line row. Checked at 320, 393, 834, 1024, and 1440 px, in English, Spanish, and German, and at Silo's x-large text size, with the base and head frontends proxied to the same deployment and data.
  • One-line data type and profile rows keep the same height and position; the Run report at tablet and desktop width is pixel-identical. A one-line trust row is 4 px taller, from the line height change above.
  • Browser font settings, checked by rendering the rows' markup against the app's built CSS in Chromium and Firefox: at a 40 px browser default font and with Firefox's minimum font size set to 32 px, every marker stays within 0.9 px of its first line's center, no checkbox overlaps the next row, no outcome runs past the list, and wrapped lines don't overlap. Earlier versions of this PR failed one of these each. At the default size the head lays out exactly as the first version, where the sandbox captures were taken.
  • Clicking the last line of a wrapped label checks its box, Tab reaches each checkbox, and Space toggles it, before and after. The browser console logged no errors.
  • Web lint, format check, build, bundle budget, and the web unit suite pass, along with the repository hygiene checks.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/restore-wrapped-checkboxes/

Risks

  • A one-line trust row is 4 px taller. Most wrapped data type labels and profile rows get shorter, since the count and outcome no longer take a column of their own. In German at laptop width the data types panel is one line taller, because the count that used to run past the panel's edge now takes a line.
  • On one line, a data type's count now sits a word space after its label instead of 8 px. A one-line row beside a wrapped one now lines up with the wrapped row's first line instead of its middle.
  • The data type and profile text is now in rem, so with a larger browser default font it grows (as the trust label already did) and wraps onto more lines, and at Silo's x-large text it renders 0.13 px larger than the 13 px text around it.
  • Firefox doesn't support text-wrap: pretty yet, so a count can still end up alone on a line there. The marker alignment doesn't depend on it.

Follow-ups

  • The Run step's progress spinner centers on its status text when the text wraps, the same problem in a row this PR doesn't change; a separate fix is in progress.

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: 3 rounds; round 3 on 7e0f6e6

Member Round 1 (7f51ef6) Round 2 (3003106) Round 3 (7e0f6e6)
Sol (gpt-6.2-sol, xhigh) 7/10 8/10 7/10
Opus (claude-opus-5-5, high) 8.5/10 9/10 8/10
Gemini (gemini-4-neon, xhigh) 9/10 9/10 unavailable

Background review, round 1: Sol found that at large browser default fonts a data type checkbox outgrew its one-line box and overlapped the next row (a click near its bottom toggled the wrong option), and that the unbreakable outcome could run past a 320 px screen. Both are fixed in 3003106. In round 2, Sol found that a one-line label then sat above its taller checkbox's center at large fonts; 7e0f6e6 fixes that. Opus and Gemini found nothing new. In round 3, Sol found that the fixed line heights 7e0f6e6 used let wrapped lines overlap under Firefox's minimum font size; 96e27db fixes that and is the head. Opus noted that 7e0f6e6's line-height floor duplicated the marker sizes, which 96e27db removes. Gemini's round 3 didn't run: its provider quota ran out. Sol's reviews didn't post because the review tool couldn't attach them to the commit. Single-word German and Finnish outcomes still run past a 320 px screen at a 40 px browser font with x-large text, as they do on main. Opus found nothing. Gemini found the restore progress spinner centering on wrapped status text, which behaves the same on main; it has its own follow-up.

Visual review: 2 rounds, captures from 7f51ef6

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

Fixed: all three members found a data type's count alone on a line at 1440 px, and a profile outcome's "·" stranded at a line's end while "Created" wrapped to the next. The label now uses text-wrap: pretty, and the outcome wraps as a unit.

Answered:

  • The dimmer focus ring in round 1 was captured during the ring's fade-in. Settled, the rings match.
  • A reported indent on a wrapped outcome measured flush with the name; the gap is the "·" glyph's own spacing.
  • In German at 1024 px the count still takes its own line, because the word before it fills the line.
  • The faint checkbox outline and focus ring on the amber box, the small touch targets, and a long German word running past its column were the same before this change.

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: a high-level multi-agent code review of the first version led to a clearer code comment. The plan round was skipped because the fix is a mechanical class change, and a simplify pass found nothing to change. The visual review changed how the count and outcome wrap. See Council review.

🤖 Generated with Claude Code

Note

Fix checkbox and icon alignment on first line of wrapped text in restore pages

Fixes vertical alignment in the admin backup restore pages so checkboxes and profile icons sit on the first line when text wraps.

  • RestoreReview.tsx: the unauthenticated-trust checkbox aligns with the label's first line via a line-height-sized wrapper and a five-unit row height
  • RestoreRun.tsx: the profile icon aligns with the first text line, and the outcome text moves as a unit after the profile label without wrapping internally
  • RestoreUsers.tsx: data-type checkboxes align with their label's first line, and label text wraps as a block with its count

Macroscope summarized 7f51ef6.

… of wrapped text

Three backup restore rows centered their leading marker on the whole text
block, so it sat between lines once the text wrapped: the data type
checkboxes on the Choose step, the "I trust this backup" checkbox on the
Review step, and each profile's outcome icon in the Run step's report.
Each marker now sits in a box one line tall at the top of its row, as the
Choose step's chevrons do. One-line rows keep their position.

A wrapped data type label also stood its count apart as a separate flex
item, and a profile's outcome did the same beside a wrapped name; both
now flow with their text. The count avoids ending up alone on the last
line, and the outcome wraps as a unit so its "·" stays with the word it
introduces. The profile icon no longer shrinks, and the trust label takes
the box's line height instead of packing wrapped lines tight.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/M 50–199 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 41 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: 07b20f9a-929c-4fb3-9da3-b2ef73bc69b9
Commits

Reviewing files that changed from the base of the PR and between 262ac3d and 96e27db.

Files selected for processing: 3

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

@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:46:31.702597Z 96e27db New commits
🔒 Security Review ✅ Completed 2026-11-21T01:47:42.819209Z 96e27db 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-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 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
… fonts

The checkbox and outcome icon are sized in rem, so a large browser
default font makes them taller than the 13 px line their box was sized
to; the box now grows with them instead of letting a checkbox overlap the
row below and take its clicks. The profile outcome was unbreakable, so a
long translated outcome at large text ran past a narrow screen; it still
moves to the next line as a unit but can now wrap inside itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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 (Gemini 4 Neon, reviewed 7f51ef6)

The three changed rows hold up against Tailwind CSS 4.2.1 (h-lh, leading-5, text-pretty, me-1.5, whitespace-nowrap), tailwind-merge 3.5.0 (text-[13px] drops Label's leading-none), eslint-plugin-formatjs (no-literal-string-in-jsx rejects {" "} inside a JSX element), label association, and RTL layout. One remaining row in the same restore step still has the same bug.

G1 (low) — web/src/pages/admin-backups/RestoreRun.tsx:271-278 (outside diff)

  • Trigger: Step 3 (RestoreRun) while the job is non-terminal (!job.terminal) and either canceling (web.admin.backups.restore.run.stopping: "Stopping after the current item…" in English, 39–43 characters in es/de/ca) or queued in longer translations (ca/lv/pl/hi), on a 320 px viewport or at 125% text scale. Inside <main> (--page-gutter: 1rem) and .surface-panel (p-5 plus a 1 px border), the status row has 246 px total width at 100% text scale (222 px after the size-4 icon and gap-2) and 228 px at 125% (198 px for text), so those strings wrap to two lines.
  • Impact: The status row uses flex items-center gap-2 text-sm font-medium, which centers <LoaderCircle> vertically between the two lines instead of keeping it on the first line. Because <LoaderCircle> also omits shrink-0 and browser UA stylesheets set overflow: hidden on non-root <svg> elements (setting min-width: auto to 0 in Flexbox), flex overflow when the text wraps can also shrink the spinner below size-4.
  • Evidence: web/src/pages/admin-backups/RestoreRun.tsx:271-278 renders <div className="flex items-center gap-2 text-sm font-medium"> with <LoaderCircle aria-hidden="true" className="size-4 motion-safe:animate-spin" />, right below the AccountReport fix in the same file.
  • Suggested repair: Use the same one-line marker wrapper as AccountReport:
<div className="flex items-start gap-2 text-sm font-medium">
  <span className="flex h-lh shrink-0 items-center">
    <LoaderCircle aria-hidden="true" className="size-4 motion-safe:animate-spin" />
  </span>

text-sm sets line-height: 1.25rem, so h-lh matches one line at every root font size and leaves single-line states ("Restoring…") unchanged.


AI-assisted review: Gemini 4 Neon via Antigravity in T3 Code.

@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 ❌

…r fonts

The data type checkbox and profile icon are sized in rem while their
text is 13 px, so at a large browser default font the marker's box grew
past the text line and a one-line label sat near the box's top instead of
beside the marker's center. These rows' line height is now never shorter
than their marker, so the marker and the first line share a center at
every font size. At the default size the line height is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 ❌

The previous commit gave the data type and profile rows a line height in
px and the trust row one in rem. A browser's minimum font size enlarges
the glyphs but not a fixed line height, so wrapped lines overlapped. The
data type and profile rows now set their text in rem with a unitless line
height, so text and rem-sized marker grow together and the line stays
taller than the marker at any font size, and the trust label takes the
box's own unitless text-sm line height. At the default size nothing moves.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@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 ❌

@Quick104
Quick104 merged commit f964c3a into main Nov 21, 2026
18 checks passed
@Quick104
Quick104 deleted the fix/restore-markers-wrapped-rows branch November 21, 2026 01:55
Quick104 added a commit that referenced this pull request Nov 21, 2026
…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]>
Quick104 added a commit that referenced this pull request Nov 21, 2026
…ped status text (#4746)

* fix(web): keep the restore progress spinner on the first line of wrapped 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]>

* fix(web): let the restore status text break inside a word when it can'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]>

* refactor(web): size the restore spinner's box like the other restore 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]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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/M 50–199 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.

1 participant