Skip to content

Commit 91244d9

Browse files
pepakrizclaude
andcommitted
fix(settings): wrap option text in toggle group items
whitespace-nowrap from the shared Toggle component was inherited by the title/description text, causing it to overflow instead of wrapping (visible on default-payment-method with longer descriptions). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 6009898 commit 91244d9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/settings/option-toggle-group.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ export function OptionToggleGroup<Value extends string>({
4949
<ToggleGroupItem
5050
key={option.value}
5151
value={option.value}
52-
className="flex h-auto justify-start gap-6 px-6 py-4 text-left"
52+
className="flex h-auto justify-start gap-6 whitespace-normal px-6 py-4 text-left"
5353
>
5454
{Icon === undefined ? null : (
5555
<Icon className="text-muted-foreground" />
5656
)}
57-
<span className="flex flex-col gap-1">
57+
<span className="flex min-w-0 flex-col gap-1">
5858
<span className="font-semibold">{option.title}</span>
5959
{option.description === undefined ? null : (
6060
<span className="text-xs leading-snug text-muted-foreground">

0 commit comments

Comments
 (0)