feat(layout): adjust resizable panel layout with equal distribution for workspace and terminal

This commit is contained in:
cfngc4594 2025-03-09 13:26:05 +08:00
parent e082aed9a1
commit e224fae210

View File

@ -23,11 +23,11 @@ export default function PlaygroundLayout({
<ResizableHandle className="mx-1 bg-transparent hover:bg-blue-500" /> <ResizableHandle className="mx-1 bg-transparent hover:bg-blue-500" />
<ResizablePanel defaultSize={50}> <ResizablePanel defaultSize={50}>
<ResizablePanelGroup direction="vertical"> <ResizablePanelGroup direction="vertical">
<ResizablePanel defaultSize={75} className="border border-muted rounded-3xl"> <ResizablePanel defaultSize={50} className="border border-muted rounded-3xl">
{workspace} {workspace}
</ResizablePanel> </ResizablePanel>
<ResizableHandle className="my-1 bg-transparent hover:bg-blue-500" /> <ResizableHandle className="my-1 bg-transparent hover:bg-blue-500" />
<ResizablePanel defaultSize={25} className="border border-muted rounded-3xl"> <ResizablePanel defaultSize={50} className="border border-muted rounded-3xl">
{terminal} {terminal}
</ResizablePanel> </ResizablePanel>
</ResizablePanelGroup> </ResizablePanelGroup>