summaryrefslogtreecommitdiff
path: root/apps/web/src/components
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2025-07-07 23:05:31 +0200
committerMaze Winther <mazewinther@gmail.com>2025-07-07 23:05:31 +0200
commitd36df2fb6273bb16d4874972a0dc832bad6836ab (patch)
tree08bbf415c16573d1c43f15f3c5e0aadd8ac942c4 /apps/web/src/components
parentacda7064bd0f328b954dcd91c852ad8ba5a3d5af (diff)
downloadopencut-d36df2fb6273bb16d4874972a0dc832bad6836ab.tar.gz
refactor: remove element menu from timeline element component
Diffstat (limited to 'apps/web/src/components')
-rw-r--r--apps/web/src/components/editor/timeline-element.tsx64
1 files changed, 0 insertions, 64 deletions
diff --git a/apps/web/src/components/editor/timeline-element.tsx b/apps/web/src/components/editor/timeline-element.tsx
index b2c95bb4..211c4e9b 100644
--- a/apps/web/src/components/editor/timeline-element.tsx
+++ b/apps/web/src/components/editor/timeline-element.tsx
@@ -298,70 +298,6 @@ export function TimelineElement({
/>
</>
)}
-
- <div className="absolute top-1 right-1">
- <DropdownMenu
- open={elementMenuOpen}
- onOpenChange={setElementMenuOpen}
- >
- <DropdownMenuTrigger asChild>
- <Button
- variant="outline"
- size="sm"
- className="h-6 w-6 p-0 opacity-0 group-hover:opacity-100 transition-opacity bg-background/80 hover:bg-background"
- onClick={(e) => {
- e.stopPropagation();
- setElementMenuOpen(true);
- }}
- >
- <MoreVertical className="h-3 w-3" />
- </Button>
- </DropdownMenuTrigger>
- <DropdownMenuContent align="end" className="w-56">
- {/* Split operations - only available when playhead is within element */}
- <DropdownMenuSub>
- <DropdownMenuSubTrigger disabled={!canSplitAtPlayhead()}>
- <Scissors className="mr-2 h-4 w-4" />
- Split
- </DropdownMenuSubTrigger>
- <DropdownMenuSubContent>
- <DropdownMenuItem onClick={handleSplitElement}>
- <SplitSquareHorizontal className="mr-2 h-4 w-4" />
- Split at Playhead
- </DropdownMenuItem>
- <DropdownMenuItem onClick={handleSplitAndKeepLeft}>
- <ChevronLeft className="mr-2 h-4 w-4" />
- Split and Keep Left
- </DropdownMenuItem>
- <DropdownMenuItem onClick={handleSplitAndKeepRight}>
- <ChevronRight className="mr-2 h-4 w-4" />
- Split and Keep Right
- </DropdownMenuItem>
- </DropdownMenuSubContent>
- </DropdownMenuSub>
-
- {/* Audio separation - only available for video elements */}
- {canSeparateAudio() && (
- <>
- <DropdownMenuSeparator />
- <DropdownMenuItem onClick={handleSeparateAudio}>
- <Music className="mr-2 h-4 w-4" />
- Separate Audio
- </DropdownMenuItem>
- </>
- )}
-
- <DropdownMenuSeparator />
- <DropdownMenuItem
- onClick={handleDeleteElement}
- className="text-destructive"
- >
- <Trash2 className="mr-2 h-4 w-4" />
- Delete {element.type === "text" ? "text" : "clip"}
- </DropdownMenuItem>
- </DropdownMenuContent>
- </DropdownMenu>
- </div>
</div>
</div>
);