fix(ui): keep the workflows toolbar readable on the 36px ladder

The run selector is the only control that gives up width, and beside the
workflow list it had none left: Open and the run's version move into the one
menu at every width, so the picked run stays readable from 390 to 1440.

Step editor and binding fields take the next rung (h-8) so they match the
selects and switches they sit beside.
This commit is contained in:
sam committed 2026-10-18 22:42:14 +11:00
1 parent 4f53eb4a06
commit ee80926091
5 files changed
+14 -14

No files matched your search

+4 -4
View File
@@ -222,11 +222,11 @@ const ON_FAILURE = [{ value: "", label: "Park the task" }, { value: "continue",
<Input
v-else-if="field.kind === 'number'"
type="number"
class="h-7 w-24 text-right text-[13px]"
class="h-8 w-24 text-right text-[13px]"
:model-value="(settings[field.key] as number | undefined) ?? ''"
@update:model-value="(value) => setSetting(field.key, String(value) === '' ? undefined : Number(String(value)))"
/>
<Input v-else class="h-7 w-40 text-[13px]" :model-value="text(field.key)" @focus="focused = field.key" @update:model-value="(value) => setSetting(field.key, String(value))" />
<Input v-else class="h-8 w-40 text-[13px]" :model-value="text(field.key)" @focus="focused = field.key" @update:model-value="(value) => setSetting(field.key, String(value))" />
</div>
</section>
@@ -282,7 +282,7 @@ const ON_FAILURE = [{ value: "", label: "Park the task" }, { value: "continue",
<label class="flex min-h-10 items-center gap-3 px-3 py-1.5">
<span class="flex-1 text-[13px]" title="Empty always runs. A field such as inputs.enabled, !inputs.skip, or steps.plan.result.ready == true">Run only when</span>
<Input
class="h-7 w-48 font-mono text-xs"
class="h-8 w-48 font-mono text-xs"
placeholder="inputs.enabled"
:aria-invalid="flowProblem && flowProblem.startsWith('when') ? true : undefined"
:model-value="(step.when as string) ?? ''"
@@ -300,7 +300,7 @@ const ON_FAILURE = [{ value: "", label: "Park the task" }, { value: "continue",
min="1"
max="10"
placeholder="1"
class="h-7 w-20 text-right text-[13px]"
class="h-8 w-20 text-right text-[13px]"
:model-value="(step.retry as { attempts?: number } | undefined)?.attempts ?? ''"
@update:model-value="(value) => setRetry({ attempts: String(value) === '' ? undefined : Number(String(value)) })"
/>