fix: make panels resizable
This commit is contained in:
@ -58,7 +58,7 @@ export default function Editor() {
|
|||||||
<div className="h-screen w-screen flex flex-col bg-background overflow-hidden">
|
<div className="h-screen w-screen flex flex-col bg-background overflow-hidden">
|
||||||
<EditorHeader />
|
<EditorHeader />
|
||||||
<div className="flex-1 min-h-0 min-w-0">
|
<div className="flex-1 min-h-0 min-w-0">
|
||||||
<ResizablePanelGroup direction="vertical" className="h-full w-full gap-2">
|
<ResizablePanelGroup direction="vertical" className="h-full w-full gap-1">
|
||||||
<ResizablePanel
|
<ResizablePanel
|
||||||
defaultSize={mainContent}
|
defaultSize={mainContent}
|
||||||
minSize={30}
|
minSize={30}
|
||||||
@ -69,7 +69,7 @@ export default function Editor() {
|
|||||||
{/* Main content area */}
|
{/* Main content area */}
|
||||||
<ResizablePanelGroup
|
<ResizablePanelGroup
|
||||||
direction="horizontal"
|
direction="horizontal"
|
||||||
className="h-full w-full gap-2 px-2"
|
className="h-full w-full gap-1 px-2"
|
||||||
>
|
>
|
||||||
{/* Tools Panel */}
|
{/* Tools Panel */}
|
||||||
<ResizablePanel
|
<ResizablePanel
|
||||||
|
@ -29,12 +29,11 @@ const ResizableHandle = ({
|
|||||||
}) => (
|
}) => (
|
||||||
<ResizablePrimitive.PanelResizeHandle
|
<ResizablePrimitive.PanelResizeHandle
|
||||||
className={cn(
|
className={cn(
|
||||||
"hidden",
|
"relative w-0 bg-transparent cursor-col-resize data-[panel-group-direction=vertical]:h-0 data-[panel-group-direction=vertical]:cursor-row-resize",
|
||||||
className
|
className
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
>
|
/>
|
||||||
</ResizablePrimitive.PanelResizeHandle>
|
|
||||||
);
|
);
|
||||||
|
|
||||||
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
export { ResizablePanelGroup, ResizablePanel, ResizableHandle };
|
||||||
|
Reference in New Issue
Block a user