fix(scan): stack form buttons vertically on mobile
The Save Roaster & Roast button text was wrapping awkwardly on narrow screens. Buttons now stack full-width on mobile and revert to inline layout on sm: breakpoint.
This commit is contained in:
parent
eff29b048c
commit
9291c3fe8c
1 changed files with 8 additions and 5 deletions
|
|
@ -225,11 +225,14 @@
|
||||||
>
|
>
|
||||||
{{ icons::spinner("h-5 w-5") }} Saving…
|
{{ icons::spinner("h-5 w-5") }} Saving…
|
||||||
</div>
|
</div>
|
||||||
<div data-show="!$_scanSubmitting" class="flex items-center justify-end gap-2">
|
<div
|
||||||
|
data-show="!$_scanSubmitting"
|
||||||
|
class="flex flex-col-reverse gap-2 sm:flex-row sm:items-center sm:justify-end"
|
||||||
|
>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
data-on:click="$_scanExtracted = false; $_matchedRoasterId = ''; $_matchedRoastId = ''"
|
data-on:click="$_scanExtracted = false; $_matchedRoasterId = ''; $_matchedRoastId = ''"
|
||||||
class="inline-flex items-center gap-2 rounded-md border px-4 py-2 text-sm font-medium text-text transition hover:bg-surface-alt"
|
class="inline-flex w-full items-center justify-center gap-2 rounded-md border px-4 py-2 text-sm font-medium text-text transition hover:bg-surface-alt sm:w-auto sm:justify-start"
|
||||||
>
|
>
|
||||||
{{ icons::x_mark("h-4 w-4") }} Cancel
|
{{ icons::x_mark("h-4 w-4") }} Cancel
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -237,7 +240,7 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
data-show="!$_matchedRoasterId"
|
data-show="!$_matchedRoasterId"
|
||||||
class="inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-semibold text-accent-text transition hover:bg-accent-hover"
|
class="inline-flex w-full items-center justify-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-semibold text-accent-text transition hover:bg-accent-hover sm:w-auto sm:justify-start"
|
||||||
>
|
>
|
||||||
{{ icons::plus("h-4 w-4") }} Save Roaster & Roast
|
{{ icons::plus("h-4 w-4") }} Save Roaster & Roast
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -245,7 +248,7 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
data-show="$_matchedRoasterId && !$_matchedRoastId"
|
data-show="$_matchedRoasterId && !$_matchedRoastId"
|
||||||
class="inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-semibold text-accent-text transition hover:bg-accent-hover"
|
class="inline-flex w-full items-center justify-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-semibold text-accent-text transition hover:bg-accent-hover sm:w-auto sm:justify-start"
|
||||||
style="display:none"
|
style="display:none"
|
||||||
>
|
>
|
||||||
{{ icons::plus("h-4 w-4") }} Save Roast
|
{{ icons::plus("h-4 w-4") }} Save Roast
|
||||||
|
|
@ -254,7 +257,7 @@
|
||||||
<button
|
<button
|
||||||
type="submit"
|
type="submit"
|
||||||
data-show="$_matchedRoastId && $_openBag"
|
data-show="$_matchedRoastId && $_openBag"
|
||||||
class="inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-semibold text-accent-text transition hover:bg-accent-hover"
|
class="inline-flex w-full items-center justify-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-semibold text-accent-text transition hover:bg-accent-hover sm:w-auto sm:justify-start"
|
||||||
style="display:none"
|
style="display:none"
|
||||||
>
|
>
|
||||||
{{ icons::bag("h-4 w-4") }} Open Bag
|
{{ icons::bag("h-4 w-4") }} Open Bag
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue