fix(ui): short run picker label that ellipsises

This commit is contained in:
sam committed 2026-10-18 23:48:42 +11:00
1 parent 58308fa95e
commit 7ac59c12f5
1 file changed
+3 -2
+3 -2
View File
@@ -25,6 +25,7 @@ import { Textarea } from "@/components/ui/textarea";
import StepRun from "./StepRun.vue";
import { restartAt, withRuns, workflowGraph } from "./workflow-graph";
import { api } from "@/lib/api";
import { ago } from "@/lib/format";
import StepEditor from "./StepEditor.vue";
import WorkflowSettings from "./WorkflowSettings.vue";
import TriggerSettings from "./TriggerSettings.vue";
@@ -341,7 +342,7 @@ const runOptions = computed(() => [
{ value: "", label: "Current definition" },
...runs.value.map((run) => ({
value: String(run.id),
label: [`${run.source === "test" ? "Test" : "Run"} #${run.id}`, run.title, run.status, runRevision(run) ? `v${runRevision(run)!.version}` : ""].filter(Boolean).join(" · "),
label: [`${run.source === "test" ? "Test" : "Run"} #${run.id}`, run.status, run.created_at ? ago(run.created_at) : ""].filter(Boolean).join(" · "),
})),
]);
const lines = computed(() => yamlLines(yaml.value));
@@ -392,7 +393,7 @@ function syncScroll(event: Event): void {
/>
</div>
<div v-if="runs.length && view === 'canvas'" class="flex min-w-0 items-center gap-1">
<OptionSelect :model-value="watched" :options="runOptions" aria-label="Run shown on the canvas" class="min-w-0 max-w-24 sm:max-w-56" @update:model-value="pick" />
<OptionSelect :model-value="watched" :options="runOptions" aria-label="Run shown on the canvas" class="min-w-0 max-w-24 sm:max-w-56 *:data-[slot=select-value]:block *:data-[slot=select-value]:truncate" @update:model-value="pick" />
<template v-if="watchedRun">
<!-- One run control keeps the row short; the run's other actions
are on the run, behind Open run in this menu. -->