Skip to content

Commit a170fb7

Browse files
committed
fix(timeline): show a speed pill's full label on hover when it is cut off
Refs #1511
1 parent 415b3b6 commit a170fb7

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/components/ai-edition/v4/V4Timeline.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1860,11 +1860,12 @@ export function V4Timeline({
18601860
: undefined
18611861
}
18621862
// Annotations teach vertical dragging on the pill; other kinds only repeat
1863-
// their name when the pill is too narrow to draw it.
1863+
// their name when the pill is too narrow to draw it. A speed label carries the
1864+
// output duration and can be cut off well above that width, so it always repeats.
18641865
title={
18651866
p.kind === "annotation"
18661867
? `${p.label} — ${t("tracks.dragHint")}`
1867-
: seg.showContent && roomForLabel
1868+
: seg.showContent && roomForLabel && p.kind !== "speed"
18681869
? undefined
18691870
: p.label
18701871
}

0 commit comments

Comments
 (0)