The open-source CapCut alternative
fixes
enkeii6406d99cb6bebe
diff --git a/apps/web/src/app/editor/[project_id]/page.tsx b/apps/web/src/app/editor/[project_id]/page.tsxindex f1252a44..4d5a27fc 100644--- a/apps/web/src/app/editor/[project_id]/page.tsx+++ b/apps/web/src/app/editor/[project_id]/page.tsx@@ -235,10 +235,87 @@ export default function Editor() {key={`inspector-${activePreset}-${resetCounter}`}direction="horizontal"className="h-full w-full gap-[0.18rem] px-3 pb-3"+ >+ <ResizablePanel+ defaultSize={100 - propertiesPanel}+ minSize={30}+ onResize={(size) => setPropertiesPanel(100 - size)}+ className="min-w-0 min-h-0"+ >+ <ResizablePanelGroup+ direction="vertical"+ className="h-full w-full gap-[0.18rem]"+ >+ <ResizablePanel+ defaultSize={mainContent}+ minSize={30}+ maxSize={85}+ onResize={setMainContent}+ className="min-h-0"+ >+ <ResizablePanelGroup+ direction="horizontal"+ className="h-full w-full gap-[0.19rem]"+ >+ <ResizablePanel+ defaultSize={toolsPanel}+ minSize={15}+ maxSize={40}+ onResize={setToolsPanel}+ className="min-w-0 rounded-sm"+ >+ <MediaPanel />+ </ResizablePanel>++ <ResizableHandle withHandle />++ <ResizablePanel+ defaultSize={previewPanel}+ minSize={30}+ onResize={setPreviewPanel}+ className="min-w-0 min-h-0 flex-1"+ >+ <PreviewPanel />+ </ResizablePanel>+ </ResizablePanelGroup>+ </ResizablePanel>++ <ResizableHandle withHandle />++ <ResizablePanel+ defaultSize={timeline}+ minSize={15}+ maxSize={70}+ onResize={setTimeline}+ className="min-h-0"+ >+ <Timeline />+ </ResizablePanel>+ </ResizablePanelGroup>+ </ResizablePanel>++ <ResizableHandle withHandle />++ <ResizablePanel+ defaultSize={propertiesPanel}+ minSize={15}+ maxSize={40}+ onResize={setPropertiesPanel}+ className="min-w-0 min-h-0"+ >+ <PropertiesPanel />+ </ResizablePanel>+ </ResizablePanelGroup>+ ) : activePreset === "vertical-preview" ? (+ <ResizablePanelGroup+ key={`vertical-preview-${activePreset}-${resetCounter}`}+ direction="horizontal"+ className="h-full w-full gap-[0.18rem] px-3 pb-3"><ResizablePaneldefaultSize={100 - previewPanel}- minSize={60}+ minSize={30}+ onResize={(size) => setPreviewPanel(100 - size)}className="min-w-0 min-h-0"><ResizablePanelGroupdiff --git a/apps/web/src/stores/panel-store.ts b/apps/web/src/stores/panel-store.tsindex 20342fe3..74ff9320 100644--- a/apps/web/src/stores/panel-store.ts+++ b/apps/web/src/stores/panel-store.ts@@ -31,17 +31,17 @@ const PRESET_CONFIGS: Record<PanelPreset, PanelSizes> = {timeline: 25,},inspector: {- toolsPanel: 25,- previewPanel: 50,- propertiesPanel: 25,- mainContent: 100,+ toolsPanel: 30,+ previewPanel: 70,+ propertiesPanel: 30,+ mainContent: 75,timeline: 25,},"vertical-preview": {- toolsPanel: 25,+ toolsPanel: 30,previewPanel: 40,- propertiesPanel: 35,- mainContent: 100,+ propertiesPanel: 30,+ mainContent: 75,timeline: 25,},};