summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/media-panel/views/media.tsx
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-15 16:28:08 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-15 16:28:08 +0200
commitfdeddbe3edf761ad41a5cd6bf9e1fb7f18624453 (patch)
tree24d9e6a21f5811779e8675d6e0e97e89953c613e /apps/web/src/components/editor/media-panel/views/media.tsx
parentb1ccf3695e3c955de0ffe11ff2cf2dfec37a049d (diff)
parent03b3c952c75b7642b537fa2499d081edd1a0a1e4 (diff)
downloadopencut-fdeddbe3edf761ad41a5cd6bf9e1fb7f18624453.tar.gz
Merge branch 'feature/plus-button-timeline' into staging
Diffstat (limited to 'apps/web/src/components/editor/media-panel/views/media.tsx')
-rw-r--r--apps/web/src/components/editor/media-panel/views/media.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/src/components/editor/media-panel/views/media.tsx b/apps/web/src/components/editor/media-panel/views/media.tsx
index 5438737f..17893156 100644
--- a/apps/web/src/components/editor/media-panel/views/media.tsx
+++ b/apps/web/src/components/editor/media-panel/views/media.tsx
@@ -24,6 +24,7 @@ import {
} from "@/components/ui/select";
import { DraggableMediaItem } from "@/components/ui/draggable-item";
import { useProjectStore } from "@/stores/project-store";
+import { addMediaToTimeline } from "@/lib/timeline-utils";
export function MediaView() {
const { mediaItems, addMediaItem, removeMediaItem } = useMediaStore();
@@ -288,6 +289,7 @@ export function MediaView() {
name: item.name,
}}
showPlusOnDrag={false}
+ onAddToTimeline={(currentTime) => addMediaToTimeline(item, currentTime)}
rounded={false}
/>
</ContextMenuTrigger>