Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
360 changes: 132 additions & 228 deletions src/components/video-editor/VideoEditor.tsx

Large diffs are not rendered by default.

21 changes: 20 additions & 1 deletion src/components/video-editor/timeline/Row.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,24 @@ interface RowProps extends RowDefinition {
hint?: string;
isEmpty?: boolean;
labelColor?: string;
onMouseEnter?: React.MouseEventHandler<HTMLDivElement>;
onMouseMove?: React.MouseEventHandler<HTMLDivElement>;
onMouseLeave?: React.MouseEventHandler<HTMLDivElement>;
onClick?: React.MouseEventHandler<HTMLDivElement>;
}

export default function Row({ id, children, label, hint, isEmpty, labelColor = "#666" }: RowProps) {
export default function Row({
id,
children,
label,
hint,
isEmpty,
labelColor = "#666",
onMouseEnter,
onMouseMove,
onMouseLeave,
onClick,
}: RowProps) {
const { setNodeRef, rowWrapperStyle, rowStyle } = useRow({ id });

return (
Expand All @@ -34,6 +49,10 @@ export default function Row({ id, children, label, hint, isEmpty, labelColor = "
ref={setNodeRef}
className="relative h-full min-h-[26px] overflow-hidden"
style={rowStyle}
onMouseEnter={onMouseEnter}
onMouseMove={onMouseMove}
onMouseLeave={onMouseLeave}
onClick={onClick}
>
{children}
</div>
Expand Down
Loading