Compare commits

...

2 commits

Author SHA1 Message Date
2c0f54b1f7 Merge pull request 'Slots: Step picker full height on phones' (#22) from slots-step-picker-height into main
Reviewed-on: #22
2026-10-26 21:15:27 +01:00
d4a14f983f 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
2026-10-26 20:15:08 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -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>

View file

@ -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>