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 23:28:06 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-15 23:28:06 +0200
commitd5c52557df6063cf856015b958f1c08c3b9de3de (patch)
treecd723236fe6e372dd799c3cbf1a1dd084ab0117d /apps/web/src/components/editor/media-panel/views/media.tsx
parent1f95bb98d6108a5fa059e0f9a08c98e5bdb72c08 (diff)
parent83d65bdd15946c4307a38af9f5c43b4c51e906fb (diff)
downloadopencut-d5c52557df6063cf856015b958f1c08c3b9de3de.tar.gz
Merge branch '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.tsx6
1 files changed, 6 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..393d72db 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 { useTimelineStore } from "@/stores/timeline-store";
export function MediaView() {
const { mediaItems, addMediaItem, removeMediaItem } = useMediaStore();
@@ -288,6 +289,11 @@ export function MediaView() {
name: item.name,
}}
showPlusOnDrag={false}
+ onAddToTimeline={(currentTime) =>
+ useTimelineStore
+ .getState()
+ .addMediaAtTime(item, currentTime)
+ }
rounded={false}
/>
</ContextMenuTrigger>