diff --git a/frontend/src/lib/components/FlowTimeline.svelte b/frontend/src/lib/components/FlowTimeline.svelte index 7566b2260a..ca594f6b13 100644 --- a/frontend/src/lib/components/FlowTimeline.svelte +++ b/frontend/src/lib/components/FlowTimeline.svelte @@ -245,6 +245,7 @@ {min} {compact} gray + followedByBar={!!b.started_at} spacerClass="bg-gray-100 dark:bg-gray-800/50 rounded-l-md" started_at={b.created_at} len={waitingLen < 100 ? 0 : waitingLen - 100} diff --git a/frontend/src/lib/components/TimelineBar.svelte b/frontend/src/lib/components/TimelineBar.svelte index 1b398e484a..43c72a9c8b 100644 --- a/frontend/src/lib/components/TimelineBar.svelte +++ b/frontend/src/lib/components/TimelineBar.svelte @@ -20,6 +20,8 @@ tooltip?: string /** A thin bar with no duration inside it: the caller shows the duration elsewhere. */ compact?: boolean + /** Another bar starts where this one ends, so a narrow bar's outside label would collide with its label. */ + followedByBar?: boolean } let { @@ -35,7 +37,8 @@ spacerClass = '', colorClass = undefined, tooltip = undefined, - compact = false + compact = false, + followedByBar = false }: Props = $props() @@ -73,8 +76,7 @@ {@const narrow = len / total < 0.09} {@const endPos = started_at != undefined && min != undefined ? (started_at - min + len) / total : 1} - - {#if !(narrow && gray && !running)} + {#if !(narrow && followedByBar)}