From 19a09cf37f4d5d249bcc4ba271e150aba4a152e0 Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Mon, 27 Apr 2026 16:52:15 +1000 Subject: [PATCH] fix(timeline): restore visible track row height --- .../video-editor/timeline/TimelineEditor.tsx | 7 +++++-- .../video-editor/timeline/TimelineWrapper.tsx | 2 +- .../video-editor/timeline/timelineLayout.test.ts | 10 ++++++++++ .../video-editor/timeline/timelineLayout.ts | 11 +++++++++++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx index b2a97a1e..128ac5c9 100644 --- a/src/components/video-editor/timeline/TimelineEditor.tsx +++ b/src/components/video-editor/timeline/TimelineEditor.tsx @@ -63,6 +63,8 @@ import TimelineWrapper from "./TimelineWrapper"; import { getTimelineContentMinHeightPx, getTimelineRowsMinHeightPx, + getTimelineViewportStretchFactor, + TIMELINE_AXIS_HEIGHT_PX, } from "./timelineLayout"; import { type AudioPeaksData, useAudioPeaks } from "./useAudioPeaks"; import { buildInteractionZoomSuggestions } from "./zoomSuggestionUtils"; @@ -709,13 +711,14 @@ function Timeline({ const timelineRowCount = 2 + annotationRowIds.length + audioRowIds.length; const timelineRowsMinHeightPx = getTimelineRowsMinHeightPx(timelineRowCount); const timelineContentMinHeightPx = getTimelineContentMinHeightPx(timelineRowCount); + const timelineViewportStretchFactor = getTimelineViewportStretchFactor(timelineRowCount); return (