Repository navigation
fix(web): show restore item and account names in full in narrow rows - #4715
Conversation
On the backup restore Choose step, an item or account row put its name in the shared Label, which is a flex box, so `truncate` cut the name off with no ellipsis. In a narrow row (a phone, or the list beside the admin sidebar and restore summary at about 1024 px) the name was also capped at 60% (45% for accounts) of a small column, leaving a few letters of name and status. Each row is now a container. Below 28rem the name wraps above the status, so names that differ only at the end, such as per-library home sections, stay apart. Wider rows keep the one-line layout, and an over-long name now ends in an ellipsis. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…hare Rows now share one line only from 42rem of row width, and the account row's admin badge, profile count and merge status (and an item's starter pack label) follow the row's width instead of the viewport. Beside the admin sidebar and restore summary these extras squeezed an account name to nothing; the details still show the status and admin role. A wrapped name breaks after its dots and underscores, keeping version numbers whole, through the helper the settings table already uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Chromium breaks at <wbr> even under white-space: nowrap, so the dotted name breaks added for narrow rows split a wide row's truncated name onto two lines. A one-line row now hides them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The label has no copy in the details panel, so following the row width hid it on desktop widths where the list sits beside the restore summary. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The version-number guard applied to underscores too, so a key such as allow_4k_transcode lost a break point in the settings table. Only a dot before a digit stays unbroken now. The account row's comment also names where the profile count goes when the row is narrow. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (claude-opus-5-5, reviewed 59f437e)
The change fixes the reported problem: the block Label gets an ellipsis back, and row-width container queries replace the viewport breakpoints that hid the account name at 1024 px. I checked tailwind-merge 3.5.0 on the merged Label classes. block replaces the base flex, leading-none drops out as before, and the @2xl:/@max-2xl: classes don't conflict. No nested component uses an unnamed container query that the new per-row @container would capture, and no row child is positioned in a way that layout containment would change. No current setting key has a dot before a digit, so the BreakableKey regex change leaves SettingsDiff as it was.
Two findings. Both come from main.
O1 is on RestoreRows.tsx line 289 (inline comment).
O2 (nit, pre-existing): SameRow still caps the name at 60% at every width. SameRow (RestoreRows.tsx, the "match this server" list) keeps max-w-[60%] shrink-0 truncate with the secondary beside the name. In a 360 px viewport the list sits in a bordered box with px-3 inside the ps-5 section. Each name gets roughly 170 px whenever a secondary exists, and on that list home sections and collections always get one (rowSecondary(item, names, true) adds the library name). The PR's reason for wrapping ItemRow names applies here: per-library section titles differ only at the end. These rows show an ellipsis, so the visible break from the report doesn't occur, but an admin checking which items match can't tell two such names apart without hovering. Repair: give SameRow the same @container column layout, or file it as a follow-up. I estimated these widths from the class list and didn't measure them in a browser.
I also looked at whether BreakableKey is needed in the rows. With @max-2xl:wrap-anywhere alone, a dotted plugin ID or username would only break mid-token when the token is wider than the name column. The longest plugin IDs in the repo, such as silo.watchprovider.simkl, come close to that width at 360 px. Keeping it is a reasonable polish call, and I'm not raising it as a finding.
This review was generated automatically by claude-opus-5-5 (Claude Code).
| title={item.label} | ||
| className={cn( | ||
| "max-w-[45%] shrink-0 truncate text-sm font-medium", | ||
| "block shrink-0 text-sm font-medium @max-2xl:wrap-anywhere @2xl:max-w-[45%] @2xl:truncate @2xl:[&_wbr]:hidden", |
There was a problem hiding this comment.
S3 (P3) — Wrapped labels crowd Arabic diacritics. The pinned tailwind-merge 3.5.0 retains the shared leading-none when text-sm follows. Chromium computes a 14 px line height for 14 px text and 17.5 px for 17.5 px text at Extra Large. In a 235 px row with a multiline Arabic label, the marks from adjacent lines crowd one another. An explicit 1.5 line height separated them in the same fixture. Set a larger line height on the wrapped labels in both row types.
There was a problem hiding this comment.
This one doesn't hold on the real build. Running the repository's cn (tailwind-merge 3.5.0) on the Label's classes plus the row's drops leading-none, because the row's text-sm comes after it. On a dev deployment, the rendered label's class list has no leading-none, and Chromium computes a 20 px line height for its 14 px text, the normal text-sm ratio, which scales with the text size setting. The fixture probably merged the classes another way. Leaving this open in case a capture shows otherwise.
🤖 Claude Code (claude-opus-5-5)
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (gemini-4-neon, reviewed 59f437e)
Verified against the checkout: Label (web/src/components/ui/label.tsx) is flex, tailwind-merge 3.5.0 drops flex (for block) and leading-none (for the trailing text-sm), Tailwind 4.2.1 compiles @max-2xl:wrap-anywhere and @2xl:[&_wbr]:hidden against the 42rem default --container-2xl, AccountRow's inline extras and panel fallbacks pair on @2xl, and no other caller of ItemRow/AccountRow/BreakableKey or Label + truncate exists in web/src/.
Three findings are attached inline (G1, G2, G4); one falls outside the diff hunks and is listed below (G3).
G3 (Medium): Keeping "Starter pack" on sm:inline (web/src/pages/admin-backups/RestoreRows.tsx:301-305) squeezes 1024 px rows and still hides the label on phones
Reverting template_collection's "Starter pack" span from @2xl:inline back to sm:inline avoids hiding it on 1024–1280 px desktop widths, but leaves both the narrow-desktop squeeze and the missing phone fallback unresolved.
- Trigger: A
template_collectionrow at1024 pxdesktop width (smis active whilecollectionsrows insideLibraryGroupRowsare348 pxwide and insideBlockedGroupRowsare356 pxwide), or at phone width (< 640 px) whenitem.collection?.local_idis set. - Impact: At
1024 px, theshrink-0"Starter pack"span sits inline beside<StateTag>and<RowDisclosure>inside a348–356 pxrow. On a blocked row (356 px), fixed siblings take ~240 px in English ("Starter pack"+"Can't restore"), ~292 px in German ("Starterpaket"+"Nicht wiederherstellbar"), and ~327 px in French ("Pack de démarrage"+"Restauration impossible"), leaving ~116 / ~64 / ~29 px for[Label + secondary], where@max-2xl:wrap-anywherewraps the title into a narrow vertical column. On phones (< 640 px),"Starter pack"stays hidden with no fallback:rowSecondaryreturns"your changes to it"for existing starter packs (restoreGroups.ts:333-334) andhasItemDetailsdoes not open a details panel for clean new ones (RestoreRows.tsx:179-190), so admins cannot tell a modified starter pack from a custom collection. - Evidence:
web/src/pages/admin-backups/RestoreRows.tsx:301-305useshidden shrink-0 text-[11px] sm:inlineinside a row whose layout switches on@container(@2xl). - Suggested repair: Switch the inline span back to
@2xl:inlineand show"Starter pack"inside the stacked text column below@2xl(for example, as a@2xl:hiddenmuted cue beside or belowsecondary). That keeps it visible at phone width without squeezing348–356 pxdesktop rows.
Automated review by Gemini 4 Neon (gemini-4-neon).
|
On G3 from the Gemini review: the "Starter pack" label keeps main's 🤖 Claude Code (claude-opus-5-5) |
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (the backup restore screen exists only in web admin)
On the backup restore Choose step, an item or account row cut its name off mid-character, with no ellipsis, whenever the row was narrow. That happens on a phone, and on a 1024–1280 px desktop window, where the list sits between the admin sidebar and the restore summary. The text beside the name shrank to a few letters, and an admin account that merges into an existing one showed no name at all, so an admin couldn't tell which item a row was. This change shows the whole name in a narrow row and ends a shortened name in "…" in a wide one.
The name sat in the shared
Label, which isdisplay: flex.truncatecan't draw an ellipsis on a flex box, so the text was hard-clipped. The row also gave the name only 60% (45% for accounts) of whatever the checkbox, state tag, and chevron left. On the account row, the admin badge, profile count, and merge status switched on by viewport width, so they also showed where the list was narrow.Approach
0.2.3whole. The detail line stays on one line and ends in "…".<wbr>even underwhite-space: nowrap, so a one-line row hides those break points.Two related problems that looked the same before this change are left out and being fixed separately: an email in a right-to-left contact line ends in "…" at its start, and a long profile name overflows the expanded profile list. A third, a name capped at 60% when nothing sits beside it, changes these same lines, so it waits for this PR in #4718.
Validation
silo.theintrodl,Recently Releaseandmaximiliana.vawith no "…". At 1024 px the merging admin row showed no name and its tag ran past the edge.Evidence
Before-and-after captures of the Plugins, Home sections and Users rows at each width above, in English, German and Arabic, with keyboard focus, and for the merging admin account.
Evidence: https://evidence.siloserver.org/r/silo-server/restore-item-name-ellipsis/
Risks
container-type: inline-size). Restore lists aren't virtualized, and nothing inside a row is positioned outside it.Checklist
Council review
Plan round: Sol, Opus, and Gemini reviewed the plan before any code. Sol showed that default home sections are titled
Recently Released Episodes in <library>, so names can differ only at the end, and the stacked name now wraps instead of truncating. Gemini showed that at 1024 px the list column is as narrow as a phone, so rows switch on their own width rather than the viewport. Opus found the plan minimal and dropped one class.Background review: 1 round, reviewed 59f437e
Opus's round-1 review raised two findings that also happen on main; both are in #4718. Sol's S1 (a checkbox named with a stray space in one-line rows) and the narrow-row half of S2 (a long username running past the details) landed after this PR merged, in #4734; the wide-row half of S2 is in #4718, and S3 didn't hold on the real build. Gemini's G4 (an ellipsis splitting when a name wraps) is fixed in #4734; G1 and G2 match main and are in #4718; G3 describes main's unchanged starter-pack gate.
Visual review: 2 rounds, captures from ffe3f0e (the two later commits change nothing a capture shows)
Fixed: names breaking inside a word; one-line rows at 450–670 px of row width hiding the end of a name; the account row's extras squeezing its name beside the sidebar; a one-line name wrapping at its break points in Chromium. Answered: the clipped focus ring, the "shifted" and "dimmer" checkbox were crop artifacts, and the checkbox is pixel-identical before and after. The Arabic email cut at its start, the English "Custom filter" in other languages, and "New account" beside the "New" tag look the same on main; the first two are being fixed separately. Open: in a one-line row at 1440 px, a merging admin's name still ends in "…" (it was cut on main too), and a narrow account row shows the admin role and merge status only in its details.
AI Disclosure
🤖 Generated with Claude Code
Note
Fix restore row label wrapping in narrow admin backups rows
BreakableKeyin RestoreRows.tsx to insert break points after underscores and after dots only when the next character is not a digit, so version numbers stay attached to the nameItemRowa container query: label and secondary text stack and the label wraps at narrow widths; at the@2xlbreakpoint they return to a single row with a truncated labelMacroscope summarized 59f437e.