From 782e6210f91a600b69f0ad7a94635df68b116965 Mon Sep 17 00:00:00 2001 From: Neko Ayaka Date: Wed, 21 Oct 2026 06:39:10 +0800 Subject: [PATCH] fix(ui): keep the run list score inside its column Co-Authored-By: Claude Opus 5.5 --- packages/ui/client/src/pages/ExperimentPage.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/ui/client/src/pages/ExperimentPage.vue b/packages/ui/client/src/pages/ExperimentPage.vue index 21f3c09..68e4c0b 100644 --- a/packages/ui/client/src/pages/ExperimentPage.vue +++ b/packages/ui/client/src/pages/ExperimentPage.vue @@ -80,11 +80,12 @@ const isPartial = (run: (typeof runs.value)[number]) => run.state !== 'running' /** * Grid of a run row. Wide screens: one line with select, attempt, run, duration, cases, headline score, menu (the * header uses the same columns). Narrow screens: select, attempt, score, and menu on the first line, the run and its - * duration below the attempt, then the cases. + * duration below the attempt, then the cases. The score column fits a typical headline (`100.0% Correct and natural`); + * a longer label truncates inside it instead of spilling over the case bar. */ const rowGrid = [ 'grid items-center gap-x-3 gap-y-1.5 grid-cols-[1rem_minmax(0,1fr)_auto_1.75rem]', - 'md:(gap-x-4 grid-cols-[1rem_minmax(14rem,1.6fr)_minmax(9rem,1fr)_5rem_minmax(12rem,2fr)_8rem_1.75rem])', + 'md:(gap-x-4 grid-cols-[1rem_minmax(14rem,1.6fr)_minmax(9rem,1fr)_5rem_minmax(12rem,2fr)_minmax(8rem,12rem)_1.75rem])', ] const selected = shallowRef([]) function duration(run: { endedAt?: string, startedAt?: string }): number | undefined { @@ -171,7 +172,7 @@ watch([() => props.attempt, () => attempts.value.length], async ([attempt]) => { {{ run.counts.total }} / {{ run.caseTotal }} - +