fix(resizable): clip panel group overflow to block programmatic scroll shift

This commit is contained in:
xintaofei
2026-04-23 11:15:05 +08:00
parent 02434b6e1d
commit d7113f6ed0

View File

@@ -6,6 +6,7 @@ import { cn } from "@/lib/utils"
function ResizablePanelGroup({
className,
style,
...props
}: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) {
return (
@@ -14,6 +15,7 @@ function ResizablePanelGroup({
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
className
)}
style={{ ...style, overflow: "clip" }}
{...props}
/>
)