fix: improve layout and styling of resizable panels

This commit is contained in:
Anwarul Islam
2025-07-12 23:40:38 +06:00
parent 22db0b8b89
commit 70517fec18
2 changed files with 11 additions and 6 deletions

View File

@ -55,9 +55,9 @@ export default function Editor() {
return (
<EditorProvider>
<div className="h-screen w-screen flex flex-col bg-background overflow-hidden">
<div className="h-screen w-screen flex flex-col bg-background">
<EditorHeader />
<div className="flex-1 min-h-0 min-w-0">
<div className="flex-1 overflow-hidden">
<ResizablePanelGroup
direction="vertical"
className="h-full w-full gap-1"
@ -67,7 +67,6 @@ export default function Editor() {
minSize={30}
maxSize={85}
onResize={setMainContent}
className="min-h-0"
>
{/* Main content area */}
<ResizablePanelGroup
@ -119,7 +118,7 @@ export default function Editor() {
minSize={15}
maxSize={70}
onResize={setTimeline}
className="min-h-0 px-2 pb-2"
className="px-2 pb-2"
>
<Timeline />
</ResizablePanel>