fixes
This commit is contained in:
parent
21b248718b
commit
06d99cb6be
|
|
@ -235,10 +235,87 @@ export default function Editor() {
|
||||||
key={`inspector-${activePreset}-${resetCounter}`}
|
key={`inspector-${activePreset}-${resetCounter}`}
|
||||||
direction="horizontal"
|
direction="horizontal"
|
||||||
className="h-full w-full gap-[0.18rem] px-3 pb-3"
|
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"
|
||||||
>
|
>
|
||||||
<ResizablePanel
|
<ResizablePanel
|
||||||
defaultSize={100 - previewPanel}
|
defaultSize={100 - previewPanel}
|
||||||
minSize={60}
|
minSize={30}
|
||||||
|
onResize={(size) => setPreviewPanel(100 - size)}
|
||||||
className="min-w-0 min-h-0"
|
className="min-w-0 min-h-0"
|
||||||
>
|
>
|
||||||
<ResizablePanelGroup
|
<ResizablePanelGroup
|
||||||
|
|
|
||||||
|
|
@ -31,17 +31,17 @@ const PRESET_CONFIGS: Record<PanelPreset, PanelSizes> = {
|
||||||
timeline: 25,
|
timeline: 25,
|
||||||
},
|
},
|
||||||
inspector: {
|
inspector: {
|
||||||
toolsPanel: 25,
|
toolsPanel: 30,
|
||||||
previewPanel: 50,
|
previewPanel: 70,
|
||||||
propertiesPanel: 25,
|
propertiesPanel: 30,
|
||||||
mainContent: 100,
|
mainContent: 75,
|
||||||
timeline: 25,
|
timeline: 25,
|
||||||
},
|
},
|
||||||
"vertical-preview": {
|
"vertical-preview": {
|
||||||
toolsPanel: 25,
|
toolsPanel: 30,
|
||||||
previewPanel: 40,
|
previewPanel: 40,
|
||||||
propertiesPanel: 35,
|
propertiesPanel: 30,
|
||||||
mainContent: 100,
|
mainContent: 75,
|
||||||
timeline: 25,
|
timeline: 25,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue