Write HTML. Render video. Built for agents.
JavaScript aiai-agentsanimationclaude-codeffmpegframeworkgsaphtmlhtml-to-videomcpmotion-graphicspuppeteerrenderingtypescriptvideo-editor
feat(studio): lanes and ruler span the full timeline width at any zoom
Miguel Angel Simon Sierraeb31e86d4f40
diff --git a/packages/studio/src/player/components/TimelineCanvas.tsx b/packages/studio/src/player/components/TimelineCanvas.tsxindex 196678b3fd..d5e4f651e2 100644--- a/packages/studio/src/player/components/TimelineCanvas.tsx+++ b/packages/studio/src/player/components/TimelineCanvas.tsx@@ -204,7 +204,12 @@ export const TimelineCanvas = memo(function TimelineCanvas({draggedClip?.started === true ? (draggedClip.previewStackingReorder?.placement ?? null) : null;return (- <div className="relative" style={{ height: totalH, width: GUTTER + trackContentWidth }}>+ // minWidth:100% makes the lanes and ruler fill the panel when the composition+ // is narrower than the viewport (zoomed out); content stays in time coords.+ <div+ className="relative"+ style={{ height: totalH, width: GUTTER + trackContentWidth, minWidth: "100%" }}+ ><TimelineRulermajor={major}minor={minor}diff --git a/packages/studio/src/player/components/TimelineLayerGroupHeader.tsx b/packages/studio/src/player/components/TimelineLayerGroupHeader.tsxindex 6f1a40753b..569b15720b 100644--- a/packages/studio/src/player/components/TimelineLayerGroupHeader.tsx+++ b/packages/studio/src/player/components/TimelineLayerGroupHeader.tsx@@ -46,7 +46,11 @@ export function TimelineLayerGroupHeader({className="relative"style={{height: TIMELINE_LAYER_GROUP_HEADER_H,- width: GUTTER + trackContentWidth,+ // Fill the full canvas width (min 100% of the panel) so the context+ // header spans the timeline at any zoom; minWidth preserves the intrinsic+ // composition width when zoomed in and scrolling.+ width: "100%",+ minWidth: GUTTER + trackContentWidth,background: theme.gutterBackground,borderBottom: `1px solid ${theme.rowBorder}`,}}diff --git a/packages/studio/src/player/components/TimelineRuler.tsx b/packages/studio/src/player/components/TimelineRuler.tsxindex 42491649fc..73416fd003 100644--- a/packages/studio/src/player/components/TimelineRuler.tsx+++ b/packages/studio/src/player/components/TimelineRuler.tsx@@ -79,13 +79,15 @@ export const TimelineRuler = memo(function TimelineRuler({})}</svg>- {/* Ruler */}+ {/* Ruler. The bar fills the full panel width (canvas is min 100% wide);+ calc(100% - GUTTER) equals trackContentWidth when zoomed in and extends+ past the content when zoomed out. Ticks stay at composition coordinates. */}<divclassName="relative overflow-hidden"style={{height: RULER_H,marginLeft: GUTTER,- width: trackContentWidth,+ width: `calc(100% - ${GUTTER}px)`,background: theme.gutterBackground,borderBottom: `1px solid ${theme.rulerBorder}`,}}