fix(ui): stack automation modal footer on mobile (#27027)
The automation create/edit modal footer laid the schedule/model dropdowns and the Cancel/Create actions in a single justify-between row. On narrow modals the fixed-width actions left too little room for the dropdowns, which wrapped to two stacked lines with Cancel squeezed in the middle. Stack the footer vertically on mobile (dropdowns row, then a right-aligned actions row) and restore the horizontal layout at sm and up. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
db92ef292f
commit
86bf927d08
1 file changed
+5
-3
@@ -138,14 +138,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Bottom toolbar -->
|
<!-- Bottom toolbar -->
|
||||||
<div class="flex items-center justify-between px-4 pb-3.5 pt-1 gap-2">
|
<div
|
||||||
<div class="flex items-center gap-0.5 flex-wrap flex-1 min-w-0">
|
class="flex flex-col sm:flex-row sm:items-center sm:justify-between px-4 pb-3.5 pt-1 gap-2"
|
||||||
|
>
|
||||||
|
<div class="flex items-center gap-0.5 flex-wrap min-w-0 sm:flex-1">
|
||||||
<ScheduleDropdown bind:this={scheduleDropdown} side="top" align="start" />
|
<ScheduleDropdown bind:this={scheduleDropdown} side="top" align="start" />
|
||||||
|
|
||||||
<ModelDropdown bind:model_id side="top" align="start" />
|
<ModelDropdown bind:model_id side="top" align="start" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-center gap-2 shrink-0">
|
<div class="flex items-center justify-end gap-2 shrink-0">
|
||||||
<button
|
<button
|
||||||
class="px-3 py-1 text-xs text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 transition"
|
class="px-3 py-1 text-xs text-gray-500 hover:text-gray-700 dark:hover:text-gray-200 transition"
|
||||||
type="button"
|
type="button"
|
||||||
|
|||||||
Reference in new issue
Block a user