From 68da487f304018b6e8d06459def8fb45514ab7d4 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Fri, 1 Aug 2025 19:57:26 +0200 Subject: style: complete re-design of whole editor --- apps/web/src/components/editor/timeline/index.tsx | 61 +++++++++++------------ 1 file changed, 28 insertions(+), 33 deletions(-) (limited to 'apps/web/src/components/editor/timeline/index.tsx') diff --git a/apps/web/src/components/editor/timeline/index.tsx b/apps/web/src/components/editor/timeline/index.tsx index 85d6a11e..8f41fbf3 100644 --- a/apps/web/src/components/editor/timeline/index.tsx +++ b/apps/web/src/components/editor/timeline/index.tsx @@ -20,6 +20,9 @@ import { ZoomIn, ZoomOut, Bookmark, + Eye, + MicOff, + Mic, } from "lucide-react"; import { Tooltip, @@ -544,7 +547,7 @@ export function Timeline() { {/* Timeline Header with Ruler */}
{/* Track Labels Header */} -
+
{/* Empty space */} . @@ -652,14 +655,14 @@ export function Timeline() { ); }).filter(Boolean); })()} - + {/* Bookmark markers */} {(() => { const { activeProject } = useProjectStore.getState(); if (!activeProject?.bookmarks?.length) return null; - + return activeProject.bookmarks.map((bookmarkTime, i) => ( -
0 && (
@@ -695,17 +698,24 @@ export function Timeline() { {tracks.map((track) => (
-
+
+ {track.muted ? ( + toggleTrackMute(track.id)} + /> + ) : ( + toggleTrackMute(track.id)} + /> + )} +
- {track.muted && ( - - Muted - - )}
))}
@@ -760,7 +770,7 @@ export function Timeline() {
e.stopPropagation()}> Track settings (soon) - {activeProject?.bookmarks?.length && activeProject.bookmarks.length > 0 && ( - <> - Bookmarks - {activeProject.bookmarks.map((bookmarkTime, i) => ( - { - e.stopPropagation(); - seek(bookmarkTime); - }} - > - - {bookmarkTime.toFixed(1)}s - - ))} - - )} ))} @@ -1000,11 +993,11 @@ function TimelineToolbar({ const handleZoomSliderChange = (values: number[]) => { setZoomLevel(values[0]); }; - + const handleToggleBookmark = async () => { await toggleBookmark(currentTime); }; - + // Check if the current time is bookmarked const currentBookmarked = isBookmarked(currentTime); return ( @@ -1142,7 +1135,9 @@ function TimelineToolbar({ -- cgit v1.3.1