diff --git a/web/src/pages/admin-backups/RestoreChoose.tsx b/web/src/pages/admin-backups/RestoreChoose.tsx index 8e73ea95bf..73cbe7bb29 100644 --- a/web/src/pages/admin-backups/RestoreChoose.tsx +++ b/web/src/pages/admin-backups/RestoreChoose.tsx @@ -29,6 +29,7 @@ import { SettingFieldStatus } from "@/pages/admin-settings/SettingField"; import { OmittedAccounts } from "./BackupWarningDetails"; import { Disclosure } from "./Disclosure"; +import { PlanSentences } from "./RestoreReview"; import { ItemRow, SameRow, type ToggleKeys } from "./RestoreRows"; import { AccountRow, DataTypesPanel } from "./RestoreUsers"; import { @@ -240,13 +241,20 @@ function LibraryGroupRows({ open={open} onOpenChange={setOpen} controls={listId} - className="text-foreground gap-1.5 text-[13px] font-medium" + className="text-foreground max-w-full gap-1.5 text-[13px] font-medium" > {/* One run of text, so the count follows the name's last word. A name with no spaces still breaks to fit. The name keeps its own direction, so a name in another script can't pull the count across it. The count - is an inline block, so it moves to the next line whole. */} - + is an inline block, so it moves to the next line whole. The button and + the text stay within the row, which clips sideways the part of a name + that can't wrap, such as one long run of joined emoji. The 0.25em of + padding, offset by a negative margin, keeps letters whole whose ink + reaches past their edge. */} + {/* eslint-disable-next-line formatjs/no-literal-string-in-jsx -- a space, not text */} {name}{" "} @@ -669,10 +677,12 @@ export function RestoreChoose({ background playback bar, and for the 6rem of page padding below this grid: without that, the end of the page pushes the panel back up under the control. A longer summary scrolls on its own, above - Review. */} + Review. min-w-0: on a narrow screen the summary shares the sections' + column, so a sentence it can't wrap would otherwise widen every + section past the screen. */}