From ff2b19a61b71f1e0f16bb1c49cb253dbb3ee800f Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Fri, 17 Apr 2026 12:00:42 +1000 Subject: [PATCH] fix: finish remaining settings review items --- src/components/video-editor/VideoEditor.tsx | 4 +- .../video-editor/timeline/TimelineEditor.tsx | 305 +++++++++--------- 2 files changed, 155 insertions(+), 154 deletions(-) diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsx index df24199a..0bf5057f 100644 --- a/src/components/video-editor/VideoEditor.tsx +++ b/src/components/video-editor/VideoEditor.tsx @@ -1770,9 +1770,7 @@ export default function VideoEditor() { setVideoPath(sourceVideoUrl); setCurrentProjectPath(null); setLastSavedSnapshot(null); - pendingFreshRecordingAutoZoomPathRef.current = autoApplyFreshRecordingAutoZooms - ? sourceVideoUrl - : null; + pendingFreshRecordingAutoZoomPathRef.current = null; setWebcam((prev) => ({ ...prev, enabled: false, diff --git a/src/components/video-editor/timeline/TimelineEditor.tsx b/src/components/video-editor/timeline/TimelineEditor.tsx index 8c15b7d2..7d61a190 100644 --- a/src/components/video-editor/timeline/TimelineEditor.tsx +++ b/src/components/video-editor/timeline/TimelineEditor.tsx @@ -784,6 +784,7 @@ const TimelineEditor = forwardRef( onOpenCropEditor, isCropped = false, videoPath, + hideToolbar = false, }, ref, ) { @@ -1849,164 +1850,166 @@ const TimelineEditor = forwardRef( return (
-
-
- - - - - -
-
- - - - - +
+ + + + + +
+
+ + - {isCustomAspectRatio(aspectRatio) && ( - - )} -
-
-
-
- + + + {ASPECT_RATIOS.map((ratio) => ( + onAspectRatioChange?.(ratio)} + className="text-slate-300 hover:text-white hover:bg-white/10 cursor-pointer flex items-center justify-between gap-3" + > + {getAspectRatioLabel(ratio)} + {aspectRatio === ratio && ( + + )} + + ))} +
+
+ Custom + + setCustomAspectWidth( + event.target.value.replace(/\D/g, ""), + ) + } + onKeyDown={handleCustomAspectRatioKeyDown} + className="w-12 h-7 rounded border border-white/15 bg-black/20 px-1.5 text-sm text-slate-100 focus:outline-none focus:ring-1 focus:ring-[#2563EB]" + aria-label="Custom aspect width" + /> + : + + setCustomAspectHeight( + event.target.value.replace(/\D/g, ""), + ) + } + onKeyDown={handleCustomAspectRatioKeyDown} + className="w-12 h-7 rounded border border-white/15 bg-black/20 px-1.5 text-sm text-slate-100 focus:outline-none focus:ring-1 focus:ring-[#2563EB]" + aria-label="Custom aspect height" + /> + + {isCustomAspectRatio(aspectRatio) && ( + + )} +
+ + +
+ +
+
+
+ + + Side Scroll + + Pan + + + + {scrollLabels.pan} + + Pan + + + + {scrollLabels.zoom} + + Zoom + +
-
-
- - - Side Scroll - - Pan - - - - {scrollLabels.pan} - - Pan - - - - {scrollLabels.zoom} - - Zoom - -
-
+ )}