Repository navigation
fix(web): clip a restore profile name that can't wrap - #4755
Conversation
A run of emoji joined by zero-width joiners is one grapheme, so no line break can split it. A valid 41-character profile name made of 21 joined emoji still ran past its row in the restore profile list, by 146 px at a 320 px viewport and past the list's edge at 1024 px. The name's label is now a block that can shrink to the row, and it clips sideways only what can't wrap. As a block, the words of a name that mixes words with such a run wrap at the row's width instead of being clipped with it. Clipping only sideways keeps tall marks above and below the line visible, and a little inline padding offset by a negative margin keeps letters that reach past their edge, such as a final "f", whole. Names that wrap render the same as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 22 minutes. View limit details
|
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. |
A profile name that can't wrap is clipped at the row's edge, and the label can't be selected, so two names that differ only past the clip looked the same. The name's label now carries the full name as its title, as the account and item names on the same screen already do. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (claude-opus-5-5, reviewed 2802053)
One finding, inline. It is small, but it contradicts the PR's claim that ordinary names render the same at Extra large text. The rest held up: block and min-w-0 act as described, overflow-x-clip leaves the vertical axis visible, the disabled, locked, and warning-line states are unaffected, and the change is web-only, so Apple, Android, Roku, and jellycompat need nothing.
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:
|
…tters The 1 px of room beside the profile name's clip was too small: a leading "j" at Large and Extra large text, and the end of some Telugu names, reach past their letter's edge by up to about 0.14em and were trimmed. The room is now 0.25em, which grows with the text size, so every ordinary name renders as it did before the clip. A name that can't wrap is clipped up to 0.25em past the row's edge. 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:
|
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (claude-opus-5-5, reviewed 6135696)
Round 1: O1 (a leading "j" trimmed at larger text sizes) is resolved. The room is now 0.25em, so it grows with the text, and the comment matches the code.
The fix looks right, and I found no simpler one. A run of emoji joined by U+200D is a single grapheme, so no line-breaking property can split it, and clipping is the remaining option. For ordinary names, the padding and negative margin cancel out in layout. I have one note, about the other rows on this screen.
Quick104
left a comment
There was a problem hiding this comment.
Adversarial review (Gemini 4 Neon, reviewed 6135696)
The change to ProfileRow itself (web/src/pages/admin-backups/RestoreUsers.tsx:96-105) holds up: -mx-[0.25em] block min-w-0 overflow-x-clip px-[0.25em] and title={profile.name} match the stated behavior across LTR/RTL, text scaling, disabled/locked states, warning lines, and screen-reader accessible names without clipping ordinary overhanging glyphs. All Round 1 items (O1, S1, S2, Kody) are resolved.
Two low-severity gaps remain outside the diff for the same unbreakable-grapheme input (fine to address in follow-up PRs if this PR stays scoped to ProfileRow):
-
G1 (low) — Narrow
AccountRowandItemRowlabels on the same Choose step paint over the state tag and chevron (web/src/pages/admin-backups/RestoreUsers.tsx:203-212,web/src/pages/admin-backups/RestoreRows.tsx:292-301).
Below@2xl(row width under42rem/672px, which applies at 320 px, 360 px, 1024 px, 1280 px, and 1504–1647 px whenSettingsGroupsplits into two columns), both rows use@max-2xl:wrap-anywherewithout horizontal clipping. Because<StateTag>and<RowDisclosure>sit directly beside the label column, a 21-emoji ZWJ username, library, collection, or home-section name (all accepted as arbitrary UTF-8 byinternal/auth/normalize.goandinternal/backup/restoreset_users.go:691-695) paints across both controls and extends ~118 px past a 320 px row.
Suggested repair: Add@max-2xl:-mx-[0.25em] @max-2xl:overflow-x-clip @max-2xl:px-[0.25em]to both<Label>elements so unbreakable runs clip inside thegap-3gutter before<StateTag>while@2xl:truncatestays unchanged on wide rows. -
G2 (low) — Later steps of the restore wizard still overflow on the same
profile.name(web/src/pages/admin-backups/RestoreRun.tsx:146-164,web/src/pages/admin-backups/RestoreReview.tsx:66-77).
Choosing the same profile whose nameProfileRownow clips and advancing to Review or Restore renders that exact name (web/src/pages/admin-backups/restoreModel.ts:724-739for library-access caveats;internal/backup/users_apply.go:382setsprofile.label = pp.entry.NameforAccountReport) withoutmin-w-0,wrap-anywhere, or horizontal clipping. At 320 px, a 21-emoji ZWJ name overflows by 115 px inAccountReportand 94 px in caveats, and an ordinary 64-character no-space name overflows by 244 px and 212 px.
Suggested repair: GiveAccountReport's text wrapper (web/src/pages/admin-backups/RestoreRun.tsx:150)min-w-0 flex-1 wrap-anywherewith horizontal clipping (-mx-[0.25em] overflow-x-clip px-[0.25em]), and applywrap-anywhereplus horizontal clipping to caveat items inweb/src/pages/admin-backups/RestoreReview.tsx:66-77.
A name holding a run no line break can split, such as emoji joined by zero-width joiners, ran past its box on the backup restore screens: the Choose step's library heading and its summary panel, the Review step's plan sentences and left-out list, and the Run report's item and profile lines. In the summary panel the sentence also set the width of the phone layout's only column, so every section ran past the screen. Each of these now clips such a run sideways at its edge, as the profile rows do since #4755. The summary panel no longer widens the column, and its sentences wrap like the Review step's. Every other name renders as before. Co-authored-by: Claude Opus 5.5 <[email protected]>
* fix(web): clip restore item and account names that can't wrap A restore row's name that holds a run no line break can split, such as emoji joined by zero-width joiners, ran past its row on the Choose step in narrow rows. Item names (libraries, collections, home sections, plugins), account names, and an account's "Merge into" line now clip that run sideways at the row's edge, as profile names do since #4755. Every other name renders as before. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(web): clip a restore item or account name only while it overflows Clipping every name in a narrow row, even with 0.25em of room, cut marks that reach above or below the line on ordinary Thai and Vietnamese names in Firefox, which clips overflow-x: clip vertically too. A small hook now measures each name (and an account's "Merge into" line) after layout and on resize, and the row clips it sideways only while its text is wider than its box. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Problem
Related issue: N/A
Validation tasks: none
Other clients: N/A (the backup restore screen is web admin only)
After #4708, a long profile name wraps in the backup restore screen's profile list. A
name that no line break can split still ran past its row. A run of emoji joined by
zero-width joiners is one grapheme, so a valid 41-character name made of 21 joined emoji
ran 146 px past the row at a 320 px viewport, and at 1024 px past the list into the space
beside it. This change clips such a run at the row's edge, and the words of a name that
mixes words with such a run wrap inside the row. Names that wrap normally look the same as
before.
Approach
The name's label in
ProfileRowbecomes a block that can shrink to the row(
block min-w-0) and clips only sideways (overflow-x-clip):overflow-hiddenalso clippedvertically and changed how Thai tone marks and stacked combining marks drew on ordinary
names.
row's width, and only the run is clipped. Left as the shared Label's flex box, the text
would wrap at the run's width and its words would run into the clip.
px-[0.25em] -mx-[0.25em]gives the clip room on each side without moving anything, soletters whose ink reaches past their edge stay whole, such as a leading "j" or the end
of some Telugu names. Measured overhang across about twenty scripts peaked at 0.136em,
and the room grows with the text size. An unbreakable run is clipped 0.25em past the
row's edge.
The label also carries the full name as its
title, as the account and item names on thisscreen already do, so a clipped name can be read on hover; the label can't be selected. An
ellipsis isn't possible: the browser won't place one inside a grapheme.
Validation
main, then rebuilt from this branch,with the same backup. On
mainthe joined-emoji name ran 146, 106, and 66 px past itsrow at 320, 360, and 1024 px, and 106 px in Arabic. With the change it is clipped 3.5 px
past the row's edge. At 1440 px it fits and is unchanged. The page doesn't scroll
sideways in either case.
short one, "jasper", and the Telugu name "మంగళ"), the Users section is byte-identical
before and after at 360, 1024, and 1440 px and in Arabic. At 320 px only the mixed name
below changes.
mainthe first line runspast the row and "Uncle" is cut off at the screen's edge. With the change the words wrap
inside the row and only the run is clipped.
to right and right to left, at 1× and 2× and at the Extra large text size, every test
name draws pixel-identically to
main: a leading "j", Telugu, Devanagari, Arabic, Thai,Vietnamese with stacked marks, combining marks, and the 64-character names. With less
room, a leading "j" and Telugu lost ink.
CSS classes and a
title, and the measurements above are the check.Evidence
Surface and build: web admin, Backups › Restore › Choose › Users, before
main3282395, after 6135696.Evidence: https://evidence.siloserver.org/r/silo-server/restore-profile-name-unbreakable/
Risks
None identified.
overflow-x: clipneeds Safari 16 or later. Older Safari ignores it andshows today's overflow.
Checklist
Council review
Rounds: 2, last reviewed 6135696
Visual review: 2 rounds, captures from 2802053
Fixed: 1 px of clip room trimmed a leading "j" at larger text and the end of a Telugu name (round 1, Opus and Sol); the room is now 0.25em. A review comment asked for a way to read a clipped name; the label now has a
title. The visual review moved the clip from 4 px to 1 px past the row, which the overhang fix moved back to 0.25em; real names keeping their ink comes first. Answered: a fade mask would fade every ordinary name; an ellipsis can't go inside one grapheme; a touch or keyboard reveal for a clipped name is left out because only a name with an unbreakable run longer than the row is ever clipped, and the full name stays the checkbox's accessible name.Follow-ups, outside this change: item and account names on this screen overflow narrow rows the same way, and the Review and Run steps didn't wrap long profile names (fixed in #4738). Round 2 also found that the fixed 0.25em of room still trims a hooked letter in Firefox with a raised minimum font size, and the follow-up fixture found a Thai name trimmed in Firefox; both are fixed in #4848, which clips only when the name overflows.
AI Disclosure
overflow-hiddenclipped tall marks, that a flex label lost whole words of a mixed name, and that sideways clipping trimmed letter overhang; the background review found that 1 px of room was too little; each was fixed and re-measured. A review comment led to thetitle. The plan round was skipped as a mechanical fix. Background and visual review results are under Council review.🤖 Generated with Claude Code