From 5d3d46c90350edc3a44d91fcb1755f9b82464866 Mon Sep 17 00:00:00 2001 From: Sai Shankar Date: Mon, 9 Mar 2026 11:08:43 +0530 Subject: [PATCH] fix(web): disable sidebar rail pointer events when offcanvas and collapsed the rail's 16px hit area at z-20 sits right where the native os scrollbar lives when the sidebar is in offcanvas mode and collapsed. this causes clicks and drags on the scrollbar to toggle the sidebar instead on windows and linux. scoping pointer-events-none to [data-collapsible=offcanvas][data-state=collapsed] fixes the interception without affecting icon mode where the rail needs to stay clickable. --- apps/web/src/components/ui/sidebar.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ui/sidebar.tsx b/apps/web/src/components/ui/sidebar.tsx index 77826aeced..ba77bddc27 100644 --- a/apps/web/src/components/ui/sidebar.tsx +++ b/apps/web/src/components/ui/sidebar.tsx @@ -566,7 +566,8 @@ function SidebarRail({