Skip to content

[bug] Restore: with larger browser text, the summary panel widens the list past a phone screen #4730

Open

Description

@Quick104

What happened

On the backup restore Choose step on a phone, when the browser's own default font size is raised (24 px instead of 16 px) and Silo's text size is x-large, the restore list runs past the right edge of the screen, and the app shell clips it. In Finnish at 320 px, the Restart badge label ("Uudelleenkäynnistys") loses about 35 px at the edge.

The cause is the page layout, not the row. Below the lg breakpoint, the restore page stacks the item list and the summary panel in a one-column grid. The summary <aside> has no min-w-0, so its minimum content width (about 344 px at this text size) sets the column's width, which is wider than a 320 px screen. Everything in the list column is then laid out at that width. The Restart badge's label is also one word with no break opportunity, so it can't fit a narrower row either.

This follows #4724, which fixes the restart notice sentence itself (#4695). With #4724, the sentence stays inside its row; at this text size it still runs about 19 px past the screen because the row is wider than the screen. On main before #4724, the same trigger puts the sentence about 318 px past the screen.

Source: found in review of #4724

Steps to reproduce

  1. Set the browser's default font size to 24 px (Chrome: Settings → Appearance → Font size → Customize, or Firefox: Settings → Fonts → Size).
  2. Set the browser language to Finnish and Silo's text size to x-large (Settings → Accessibility).
  3. Have a backup whose settings differ from the server's for a setting that needs a restart (for example, take a backup, then change scanner.empty_trash_after_scan).
  4. At 320 px wide, open Admin → Backups → Restore, and on the Choose step open the details of the "Library & Metadata" item.

Expected behavior

The restore list and its notices fit the screen at phone widths with enlarged browser text: the summary panel doesn't widen the list column, and the Restart badge label and the notice sentence wrap or break instead of running past the edge.

Silo version / commit

main at ab6e84d, plus #4724 at 7a00aae.

Deployment

Measured on a component fixture that renders the restore Choose step (RestoreChoose) with the shipped Finnish strings, the admin page gutters, and the app's fonts, in headless Chromium 159 and Firefox 159. Not reproduced on a full deployment: the dev sandbox host was out of disk space.

Area

Web UI

Clients affected

  • Web UI

Relevant logs

None; this is a layout problem. Measurements (Finnish, Silo x-large, browser default 24 px):

Width Build Sentence past screen Badge label past screen Summary panel min width
320 px main 318 px 35 px 344 px
320 px #4724 19 px 35 px 344 px
393 px #4724 0 0 344 px

Chromium and Firefox agree within 2 px.

Technical notes

  • web/src/pages/admin-backups/RestoreChoose.tsx: the grid grid gap-8 lg:grid-cols-[minmax(0,1fr)_20rem] has one implicit auto column below lg. The list's wrapper has min-w-0; the summary <aside> doesn't, so its min-content width sets the column's minimum.
  • web/src/components/settings/RestartBadge.tsx: the badge is shrink-0 and its label is a single word, so it needs a break opportunity (for example overflow-wrap: anywhere and max-width: 100%) to fit a row narrower than the word. The same badge appears in the settings card under the notice and on settings pages.
  • The notice row in itemDetails (RestoreRows.tsx) would also need overflow-wrap: anywhere so "uudelleenkäynnistyksen" can break once the column fits the screen. That's the line fix(web): move the restore restart notice under its badge when a translation can't fit beside it #4724 changes, so this waits for fix(web): move the restore restart notice under its badge when a translation can't fit beside it #4724 to merge.
  • In a review fixture, min-w-0 on the aside, max-inline-size: 100% on the badge, and overflow-wrap: anywhere on the notice row kept both strings on screen in Chromium and Firefox.

AI harness

Claude Code in T3 Code

AI tool(s)

Claude Code; T3 Code delegated tasks for the adversarial review (Codex)

AI model(s)

claude-opus-5-5; the adversarial review that found it ran on gpt-6.2-sol

AI involvement

Fully AI-generated; measured by the agents on a component fixture

Independent or adversarial review

Found by the adversarial review of #4724 (gpt-6.2-sol). The agent re-measured it against both main and #4724 in Chromium and Firefox and confirmed that main shows it too.

Confirmations

  • I searched open and recently closed issues and pull requests, and this is not already reported
  • I reproduced this myself on a real deployment (measured on a component fixture; see Deployment)
  • Any logs provided are raw apart from marked redactions and are not AI-summarized; if none were available, I said so above

Activity

  1. added
    bug
    on Nov 21, 2026
  2. added
    impact: polish
    priority: P2
    triaged
    on Nov 21, 2026
  3. Quick104 commented on Nov 21, 2026

    @Quick104
    ContributorAuthor

    More data from a second review of #4724 (gemini-4-neon), measured in Chromium, Firefox, and WebKit. Rows below are 320 px wide unless noted; each case is "browser default font × Silo x-large":

    • 20 px browser font: the Finnish Restart badge ("Uudelleenkäynnistys", about 237 px) overflows a 226 px row by about 11 px. The Croatian badge ("Ponovno pokretanje") overflows by 6–7 px.
    • 24 px browser font: the Finnish badge overflows by about 77 px, Croatian by 71–74 px, and Turkish ("Yeniden başlatma") by 42–43 px. The word "uudelleenkäynnistyksen" overflows by about 49 px.
    • 200% browser font at Silo's default size: the Finnish badge overflows by about 104 px and the long word by about 75 px.
    • 393 px wide, 24 px browser font: the Finnish badge overflows by about 4 px.

    These row widths assume the list column fits the screen. Today the summary panel's minimum width (described above) makes the column wider, so the fix needs both parts.

    Notes for the fix:

    • overflow-wrap: anywhere (wrap-anywhere) on the notice row doesn't change any line break when words fit, because flex-wrap places items by their max-content size. Tested across 200–560 px in all three engines.
    • For RestartBadge: max-w-full on the outer span, shrink-0 on the icon, and min-w-0 wrap-anywhere on the label. Multi-word labels (Croatian, Turkish, Arabic, Hebrew) then wrap at spaces, and single-word labels stay inside the row. Check the badge's other call sites (RestoreRows.tsx settings diff, SettingField.tsx, ProviderTile.tsx) for wrapping beside sibling labels.

    🤖 Claude Code (claude-opus-5-5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugimpact: polishpriority: P2triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions