Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion web/src/pages/admin-backups/RestoreRows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ function itemDetails(t: Translate, item: RestoreItem): ReactNode {
</ul>
) : null,
missingPaths.length > 0 ? (
<p key="missing-paths" className="text-xs text-amber-600 dark:text-amber-400">
<p key="missing-paths" className="text-xs wrap-anywhere text-amber-600 dark:text-amber-400">
{t("web.admin.backups.restore.rows.cantOpen", { paths: missingPaths.join(", ") })}
</p>
) : null,
Expand Down
6 changes: 4 additions & 2 deletions web/src/pages/admin-settings/SettingField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ export const SETTINGS_NUMBER_WIDTH = "w-full sm:w-[var(--settings-control-w-num)
* The text may wrap. Items align to the top, and each direct `svg` child (a
* `size-3.5` icon) is offset to center on the first line. When the icon is
* taller than a line, as with a large browser font size, the top padding lowers
* the text instead, so the icon stays inside the status.
* the text instead, so the icon stays inside the status. A word wider than the
* line, such as a folder path, breaks inside the word: `wrap-anywhere`, unlike
* `break-words`, lets the text (a flex item) shrink below its longest word.
*/
export function SettingFieldStatus({
tone = "ok",
Expand All @@ -61,7 +63,7 @@ export function SettingFieldStatus({
return (
<span
className={cn(
"inline-flex items-start gap-1.5 text-[13px] leading-snug has-[>svg]:pt-[max(0px,calc((0.875rem-1lh)/2))] [&>svg]:mt-[calc((1lh-0.875rem)/2)]",
"inline-flex items-start gap-1.5 text-[13px] leading-snug wrap-anywhere has-[>svg]:pt-[max(0px,calc((0.875rem-1lh)/2))] [&>svg]:mt-[calc((1lh-0.875rem)/2)]",
Comment thread
Quick104 marked this conversation as resolved.
Resolved
Comment thread
Quick104 marked this conversation as resolved.
Resolved
tone === "ok" && "text-green-600 dark:text-green-400",
tone === "warn" && "text-amber-600 dark:text-amber-400",
tone === "muted" && "text-muted-foreground",
Expand Down
Loading