fix(studio): keep Timeline under the 600-line cap and un-export postRootDurationToPreview

CI file-size check and fallow audit caught two issues the --no-verify
commits skipped: Timeline.tsx sat at 602 (max 600) and
postRootDurationToPreview was an unused export (only called in-file).
Trim a comment to hit 600; drop the export.
This commit is contained in:
Miguel Angel Simon Sierra
2026-07-08 23:46:28 -04:00
parent 9f6c20e482
commit ce0ddbccf8
2 changed files with 2 additions and 4 deletions
@@ -190,7 +190,7 @@ export function patchIframeDomTiming(
}
}
export function postRootDurationToPreview(
function postRootDurationToPreview(
iframe: HTMLIFrameElement | null,
durationSeconds: number,
): void {
@@ -230,9 +230,7 @@ export const Timeline = memo(function Timeline({
setRangeSelectionRef,
});
// basisDuration drives the zoom (committed, no live preview); effectiveDuration
// adds the active drag/resize preview so the ruler/width follow a past-end drag.
// See timelineLayout for why the split prevents jump-during-extend.
// basis drives the zoom (committed); effective adds the live preview (see timelineLayout).
const basisDuration = useMemo(
() =>
computeTimelineBasisDuration(