Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.
TypeScript cross-platformelectronffmpegopen-sourceproduct-demorustscreen-capturescreen-recorderscreen-recordingscreen-studioscreencastspeech-to-texttypescriptvideo-editingvideo-editorwaylandwgpuwhisper
resizing layouts
Siddharth588bafcf3875
diff --git a/src/components/video-editor/VideoEditor.tsx b/src/components/video-editor/VideoEditor.tsxindex ac57c610f..f9bb64907 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 3e9b2cdb5..1846aeb12 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}