From 632816057bf84e896bd9f740269c0f60a86ad2df Mon Sep 17 00:00:00 2001 From: Siddharth Date: Thu, 20 Nov 2025 16:10:58 -0700 Subject: [PATCH] fix layout issues and export on windows --- .../video-editor/PlaybackControls.tsx | 18 ++--- src/components/video-editor/VideoEditor.tsx | 69 ++++++++++--------- src/lib/exporter/frameRenderer.ts | 21 +++++- 3 files changed, 63 insertions(+), 45 deletions(-) diff --git a/src/components/video-editor/PlaybackControls.tsx b/src/components/video-editor/PlaybackControls.tsx index f567235..cfa0f44 100644 --- a/src/components/video-editor/PlaybackControls.tsx +++ b/src/components/video-editor/PlaybackControls.tsx @@ -31,12 +31,12 @@ export default function PlaybackControls({ const progress = duration > 0 ? (currentTime / duration) * 100 : 0; return ( -
+
- + {formatTime(currentTime)} -
+
{/* Custom Track Background */} -
+
- + {formatTime(duration)}
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx index 58b6911..c1bb49b 100644 --- a/src/components/video-editor/VideoEditor.tsx +++ b/src/components/video-editor/VideoEditor.tsx @@ -280,47 +280,50 @@ export default function VideoEditor() {
{/* Left Column - Video & Timeline */} -
+
{/* Video Preview Area */} -
-
-
- +
+
+ {/* Video Container - Fixed aspect ratio */} +
{/* 16:9 aspect ratio */} +
+
+ +
+
- {/* Floating Playback Controls */} -
-
- -
+ {/* Playback Controls - Below video */} +
+
{/* Timeline Area */} -
+