Skip to content

🎥 Make videos programmatically with React

Keep useResolveStackAndReactToChange; scope PR to indent fix only

Jonny Burger97554e1637ca
diff --git a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx
index 6569740360..f1792210d8 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}
/>
diff --git a/packages/studio/src/components/Timeline/TimelineListItem.tsx b/packages/studio/src/components/Timeline/TimelineListItem.tsx
index e79d6c0f2d..bd22fc33d8 100644
--- a/packages/studio/src/components/Timeline/TimelineListItem.tsx
+++ b/packages/studio/src/components/Timeline/TimelineListItem.tsx
@@ -26,7 +26,7 @@ import {
import {TimelineExpandedSection} from './TimelineExpandedSection';
import {TimelineLayerEye, TimelineLayerEyeSpacer} from './TimelineLayerEye';
import {TimelineStack} from './TimelineStack';
-import {useResolvedStack} from './use-resolved-stack';
+import {useResolveStackAndReactToChange} from './use-resolved-stack-react-to-change';
export const TimelineListItem: React.FC<{
readonly sequence: TSequence;
@@ -42,7 +42,7 @@ export const TimelineListItem: React.FC<{
const {codeValues} = useContext(Internals.VisualModeCodeValuesContext);
const {setCodeValues} = useContext(Internals.VisualModeSettersContext);
- const originalLocation = useResolvedStack(sequence.stack ?? null);
+ const originalLocation = useResolveStackAndReactToChange(sequence.getStack);
const validatedLocation = useMemo(() => {
if (