mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-07 04:12:04 +00:00
fix(settings): stack the coach nudge frequency row on a phone
At 16 px touch type the longest frequency option and its label no longer fit one row inside a 390 px card, and the select pushed the page sideways.
This commit is contained in:
1 parent
4a02b78f5a
commit
3ad0607cec
1 file changed
+5
-2
@@ -249,7 +249,10 @@ export function CoachNudgeCard({
|
||||
/>
|
||||
</div>
|
||||
))}
|
||||
<div className="flex min-h-11 items-center gap-3">
|
||||
{/* Stacked on a phone: at 16 px touch type the longest option
|
||||
("At most every two weeks") plus the label no longer fits one
|
||||
row inside a 390 px card. */}
|
||||
<div className="flex min-h-11 flex-col items-stretch gap-2 sm:flex-row sm:items-center sm:gap-3">
|
||||
<label
|
||||
htmlFor="coach-nudge-frequency"
|
||||
className="text-sm font-medium"
|
||||
@@ -258,7 +261,7 @@ export function CoachNudgeCard({
|
||||
</label>
|
||||
<NativeSelect
|
||||
id="coach-nudge-frequency"
|
||||
className="w-auto"
|
||||
className="sm:w-auto"
|
||||
value={resolved.nudgeFrequency}
|
||||
disabled={!isAuthenticated || saving}
|
||||
onChange={(e) =>
|
||||
|
||||
Reference in new issue
Block a user