🎥 Make videos programmatically with React
Align timeline effect toggle with visibility toggles
JonnyBurger325417e6f686
diff --git a/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx b/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsxindex eeab1ed8df..13e18a98cd 100644--- a/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx@@ -28,6 +28,7 @@ export const TimelineEffectGroupRow: React.FC<{readonly nodePath: SequencePropsSubscriptionKey;readonly validatedLocation: CodePosition;readonly nestedDepth: number;+ readonly depth: number;readonly style: React.CSSProperties;readonly getIsExpanded: GetIsExpanded;readonly toggleTrack: (nodePathInfo: SequenceNodePathInfo) => void;@@ -39,6 +40,7 @@ export const TimelineEffectGroupRow: React.FC<{nodePath,validatedLocation,nestedDepth,+ depth,style,getIsExpanded,toggleTrack,@@ -113,7 +115,6 @@ export const TimelineEffectGroupRow: React.FC<{return (<div style={mergedStyle}>- <Padder depth={nestedDepth + 1} />{canToggle ? (<TimelineLayerEyetype="effect"@@ -123,6 +124,7 @@ export const TimelineEffectGroupRow: React.FC<{) : (<TimelineLayerEyeSpacer />)}+ <Padder depth={nestedDepth + 1 + depth} /><TimelineExpandArrowButtonisExpanded={isExpanded}onClick={() => toggleTrack(nodePathInfo)}diff --git a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsxindex 61a8cd507d..c249a4a74f 100644--- a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx@@ -62,6 +62,11 @@ export const TimelineExpandedRow: React.FC<{[paddingLeft],);+ const effectGroupStyle = useMemo(+ (): React.CSSProperties => ({...groupRowBase, paddingLeft: 5}),+ [],+ );+const labelOnlyStyle = useMemo((): React.CSSProperties => ({...labelOnlyRowBase,@@ -82,7 +87,8 @@ export const TimelineExpandedRow: React.FC<{nodePath={nodePath}validatedLocation={validatedLocation}nestedDepth={nestedDepth}- style={groupStyle}+ depth={depth}+ style={effectGroupStyle}getIsExpanded={getIsExpanded}toggleTrack={toggleTrack}/>