Skip to content

Commit 00dd024

Browse files
Priyansh4444claude
andcommitted
fix(web): wrap settings controls in narrow panes
Snooze preset durations and font-size selects overflowed their rows at the widths narrow windows now reach. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent dfcd518 commit 00dd024

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/web/src/components/settings/SnoozePresetsSettings.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function SnoozePresetFields(props: {
339339
// misclick on "When" can be undone without retyping it.
340340
const [memory, setMemory] = useState<KindMemory>({ minutes: 60, time: "09:00" });
341341
return (
342-
<div className="flex items-center gap-2">
342+
<div className="flex min-w-0 flex-wrap items-center gap-2">
343343
<Select
344344
value={when}
345345
items={WHEN_LABELS}
@@ -373,7 +373,7 @@ function SnoozePresetFields(props: {
373373
onChange={(minutes) => onChange({ ...preset, minutes })}
374374
/>
375375
) : (
376-
<>
376+
<div className="flex min-w-0 flex-wrap items-center gap-2">
377377
<span className="text-xs text-muted-foreground">at</span>
378378
<Input
379379
nativeInput
@@ -388,7 +388,7 @@ function SnoozePresetFields(props: {
388388
}
389389
}}
390390
/>
391-
</>
391+
</div>
392392
)}
393393
</div>
394394
);
@@ -410,7 +410,7 @@ function DurationFields(props: { minutes: number; onChange: (minutes: number) =>
410410
setDraft(amount);
411411
}
412412
return (
413-
<>
413+
<div className="flex min-w-0 flex-wrap items-center gap-2">
414414
<NumberField
415415
size="sm"
416416
className="w-32"
@@ -465,6 +465,6 @@ function DurationFields(props: { minutes: number; onChange: (minutes: number) =>
465465
))}
466466
</SelectPopup>
467467
</Select>
468-
</>
468+
</div>
469469
);
470470
}

‎apps/web/src/components/settings/TypographySettings.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ function FontFamilySettingsRow({
493493
/>
494494
);
495495
const control = (
496-
<div className="flex w-full items-center gap-2 sm:w-auto">
496+
<div className="flex w-full flex-wrap items-center gap-2 sm:w-auto @min-[32rem]/settings-row:flex-nowrap">
497497
<div className="min-w-0 flex-1 sm:w-44 sm:flex-none">{familyControl}</div>
498498
<Select
499499
value={String(size.value)}

0 commit comments

Comments
 (0)