Create polished demo videos without editing skills. Mac/Windows/Linux
resizing layouts
Siddharth588bafcf3875
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsxindex ac57c610..f9bb6490 100644--- a/src/components/video-editor/VideoEditor.tsx+++ b/src/components/video-editor/VideoEditor.tsx@@ -82,16 +82,18 @@ export default function VideoEditor() {<div className="flex flex-col gap-6 flex-1">{videoPath && (<>- <VideoPlayback- ref={videoPlaybackRef}- videoPath={videoPath}- isSeeking={isSeeking}- onDurationChange={setDuration}- onTimeUpdate={setCurrentTime}- onPlayStateChange={setIsPlaying}- onError={setError}- wallpaper={wallpaper}- />+ <div className="flex justify-center w-full">+ <VideoPlayback+ ref={videoPlaybackRef}+ videoPath={videoPath}+ isSeeking={isSeeking}+ onDurationChange={setDuration}+ onTimeUpdate={setCurrentTime}+ onPlayStateChange={setIsPlaying}+ onError={setError}+ wallpaper={wallpaper}+ />+ </div><PlaybackControlsisPlaying={isPlaying}currentTime={currentTime}diff --git a/src/components/video-editor/VideoPlayback.tsx b/src/components/video-editor/VideoPlayback.tsxindex 3e9b2cdb..1846aeb1 100644--- a/src/components/video-editor/VideoPlayback.tsx+++ b/src/components/video-editor/VideoPlayback.tsx@@ -119,8 +119,8 @@ const VideoPlayback = forwardRef<VideoPlaybackRef, VideoPlaybackProps>(({return (<div- className="w-full aspect-video rounded-sm p-12 flex items-center justify-center overflow-hidden bg-cover bg-center"- style={backgroundStyle}+ className="aspect-video rounded-sm p-12 flex items-center justify-center overflow-hidden bg-cover bg-center"+ style={{ ...backgroundStyle, width: '90%' }}><canvasref={canvasRef}