🎥 Make videos programmatically with React
cool
Jonny Burger225f50aea634
diff --git a/packages/studio/src/components/Timeline/TimelineEffectFieldRow.tsx b/packages/studio/src/components/Timeline/TimelineEffectFieldRow.tsxindex d132c7b05f..d17ba35889 100644--- a/packages/studio/src/components/Timeline/TimelineEffectFieldRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineEffectFieldRow.tsx@@ -229,6 +229,7 @@ export const TimelineEffectFieldRow: React.FC<{selectable={selection.selectable}onSelect={selection.onSelect}showSelectedBackground+ containsSelection={false}><TimelineFieldLabelrowDepth={rowDepth}diff --git a/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx b/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsxindex 5f44d8ab5c..ced77a7a93 100644--- a/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineEffectGroupRow.tsx@@ -236,6 +236,7 @@ export const TimelineEffectGroupRow: React.FC<{selectable={selection.selectable}onSelect={selection.onSelect}showSelectedBackground+ containsSelection={false}><spanonPointerEnter={() => setLabelHovered(true)}diff --git a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsxindex 0ba1bb2f9f..3543fcdbcc 100644--- a/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineExpandedRow.tsx@@ -105,6 +105,7 @@ export const TimelineExpandedRow: React.FC<{selectable={selection.selectable}onSelect={selection.onSelect}showSelectedBackground+ containsSelection={false}><span style={labelStyle}>{node.label}</span></TimelineRowChrome>@@ -154,6 +155,7 @@ export const TimelineExpandedRow: React.FC<{selectable={selection.selectable}onSelect={selection.onSelect}showSelectedBackground+ containsSelection={false}><span style={labelStyle}>{node.label}</span></TimelineRowChrome>diff --git a/packages/studio/src/components/Timeline/TimelineFieldRow.tsx b/packages/studio/src/components/Timeline/TimelineFieldRow.tsxindex f6edaf2372..cd31eb4c6a 100644--- a/packages/studio/src/components/Timeline/TimelineFieldRow.tsx+++ b/packages/studio/src/components/Timeline/TimelineFieldRow.tsx@@ -182,6 +182,7 @@ export const TimelineFieldRow: React.FC<{selectable={selection.selectable}onSelect={selection.onSelect}showSelectedBackground+ containsSelection={false}><TimelineFieldLabelrowDepth={rowDepth}diff --git a/packages/studio/src/components/Timeline/TimelineListItem.tsx b/packages/studio/src/components/Timeline/TimelineListItem.tsxindex e0242b23b1..7a66deb509 100644--- a/packages/studio/src/components/Timeline/TimelineListItem.tsx+++ b/packages/studio/src/components/Timeline/TimelineListItem.tsx@@ -360,6 +360,7 @@ export const TimelineListItem: React.FC<{selectable={false}onSelect={onSelect}showSelectedBackground+ containsSelection={containsSelection}><div style={labelContainerStyle}><TimelineItemNamediff --git a/packages/studio/src/components/Timeline/TimelineRowChrome.tsx b/packages/studio/src/components/Timeline/TimelineRowChrome.tsxindex 6e3d3004a1..a29b9db00e 100644--- a/packages/studio/src/components/Timeline/TimelineRowChrome.tsx+++ b/packages/studio/src/components/Timeline/TimelineRowChrome.tsx@@ -29,6 +29,7 @@ export const TimelineRowChrome: React.FC<{readonly selectable: boolean;readonly onSelect: () => void;readonly showSelectedBackground: boolean;+ readonly containsSelection: boolean;}> = ({depth,eye,@@ -39,17 +40,18 @@ export const TimelineRowChrome: React.FC<{selectable,onSelect,showSelectedBackground,+ containsSelection,}) => {const rowStyle = useMemo((): React.CSSProperties => ({...rowBase,...style,backgroundColor:- selected && showSelectedBackground+ showSelectedBackground && (selected || containsSelection)? TIMELINE_SELECTED_BACKGROUND: undefined,}),- [selected, showSelectedBackground, style],+ [selected, containsSelection, showSelectedBackground, style],);const indentWidth = getTimelineRowIndentWidth(depth);diff --git a/packages/studio/src/components/Timeline/TimelineTracks.tsx b/packages/studio/src/components/Timeline/TimelineTracks.tsxindex 4ff61d459b..62d304678e 100644--- a/packages/studio/src/components/Timeline/TimelineTracks.tsx+++ b/packages/studio/src/components/Timeline/TimelineTracks.tsx@@ -32,7 +32,7 @@ const TimelineTracksInner: React.FC<{const {getIsExpanded} = useContext(ExpandedTracksGetterContext);const {previewServerState} = useContext(StudioServerConnectionCtx);const previewServerConnected = previewServerState.type === 'connected';- const {isSelected} = useTimelineSelection();+ const {isSelected, containsSelection} = useTimelineSelection();const timelineStyle: React.CSSProperties = useMemo(() => {return {@@ -50,7 +50,8 @@ const TimelineTracksInner: React.FC<{track.nodePathInfo !== null && getIsExpanded(track.nodePathInfo);const rowSelected =track.nodePathInfo !== null &&- isSelected({type: 'row', nodePathInfo: track.nodePathInfo});+ (isSelected({type: 'row', nodePathInfo: track.nodePathInfo}) ||+ containsSelection(track.nodePathInfo));return (<div key={track.sequence.id}>