Admin on phones: item editor, Vouchers & codes, slot Step picker
- Services & products editor: each length stays on one line (minutes, price, then "1 h 30 min" to the right instead of underneath), and the Active toggle's text wraps instead of running off the screen. - Vouchers & codes: one card per code below lg (the seven-column table scrolled sideways); Search sits beside the search field. The Manage window lists the parts as rows on a phone; its five-column table is kept from sm up, hidden through a wrapper because DaisyUI's "table" class also sets display: table and beats "hidden". - Slots (Add window and Generate slots): the Step picker is laid out like the Start times control above it and fills the row; the window's services list each name with its lengths underneath. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
parent
56077f3246
commit
42e435fb8a
4 changed files with 106 additions and 50 deletions
|
|
@ -151,11 +151,14 @@
|
|||
onChange={(v) => (draft.startTimes = v as StartTimesMode)}
|
||||
/>
|
||||
{#if draft.startTimes === 'grid'}
|
||||
<label class="mt-2 flex items-center gap-3">
|
||||
<span class="w-28 shrink-0 text-sm font-medium">Step</span>
|
||||
<select class="select select-sm w-40" name="gridMinutes" bind:value={draft.gridMinutes}>
|
||||
{#each GRID_STEP_OPTIONS as step (step)}<option value={step}>Every {step} min</option>{/each}
|
||||
</select>
|
||||
<!-- Laid out like the Start times row above: label on the left, or above it in a narrow row. -->
|
||||
<label class="mt-2 @container block">
|
||||
<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>
|
||||
<select class="select select-sm w-full flex-1" name="gridMinutes" bind:value={draft.gridMinutes}>
|
||||
{#each GRID_STEP_OPTIONS as step (step)}<option value={step}>Every {step} min</option>{/each}
|
||||
</select>
|
||||
</span>
|
||||
</label>
|
||||
{/if}
|
||||
<span class="label whitespace-normal">{startTimesHint(draft.startTimes, draft.gridMinutes)}</span>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue