From d7113f6ed0f5ae0051727d81af81206e1d16c578 Mon Sep 17 00:00:00 2001 From: xintaofei Date: Thu, 23 Apr 2026 11:15:05 +0800 Subject: [PATCH] fix(resizable): clip panel group overflow to block programmatic scroll shift --- src/components/ui/resizable.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx index 171d573..2bdd047 100644 --- a/src/components/ui/resizable.tsx +++ b/src/components/ui/resizable.tsx @@ -6,6 +6,7 @@ import { cn } from "@/lib/utils" function ResizablePanelGroup({ className, + style, ...props }: React.ComponentProps) { 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} /> )