Slots: Step picker no longer squashed flat on a phone
In a narrow row the Step label goes above the picker (flex-col), where the picker's flex-1 sized its height, not its width, and flattened it. It now grows only in the side-by-side layout (@sm:flex-1). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
parent
83f3cc1d2d
commit
d4a14f983f
2 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@
|
||||||
<label class="mt-2 @container block">
|
<label class="mt-2 @container block">
|
||||||
<span class="flex flex-col gap-1 @sm:flex-row @sm:items-center @sm:gap-3">
|
<span class="flex flex-col gap-1 @sm:flex-row @sm:items-center @sm:gap-3">
|
||||||
<span class="shrink-0 text-sm font-medium @sm:w-28">Step</span>
|
<span class="shrink-0 text-sm font-medium @sm:w-28">Step</span>
|
||||||
<select class="select select-sm w-full flex-1" name="gridMinutes" bind:value={draft.gridMinutes}>
|
<select class="select select-sm w-full @sm:flex-1" name="gridMinutes" bind:value={draft.gridMinutes}>
|
||||||
{#each GRID_STEP_OPTIONS as step (step)}<option value={step}>Every {step} min</option>{/each}
|
{#each GRID_STEP_OPTIONS as step (step)}<option value={step}>Every {step} min</option>{/each}
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -469,7 +469,7 @@
|
||||||
<label class="mt-2 @container block">
|
<label class="mt-2 @container block">
|
||||||
<span class="flex flex-col gap-1 @sm:flex-row @sm:items-center @sm:gap-3">
|
<span class="flex flex-col gap-1 @sm:flex-row @sm:items-center @sm:gap-3">
|
||||||
<span class="shrink-0 text-sm font-medium @sm:w-28">Step</span>
|
<span class="shrink-0 text-sm font-medium @sm:w-28">Step</span>
|
||||||
<select class="select select-sm w-full flex-1" name="gridMinutes" bind:value={draft.gridMinutes}>
|
<select class="select select-sm w-full @sm:flex-1" name="gridMinutes" bind:value={draft.gridMinutes}>
|
||||||
{#each GRID_STEP_OPTIONS as step (step)}<option value={step}>Every {step} min</option>{/each}
|
{#each GRID_STEP_OPTIONS as step (step)}<option value={step}>Every {step} min</option>{/each}
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue