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 (