From 4b6a0c433cb808a0ebdd30ec48e799b6543d2cc9 Mon Sep 17 00:00:00 2001 From: Sai Shankar Date: Mon, 9 Mar 2026 16:33:13 +0530 Subject: [PATCH] fix(web): fix native scrollbar being intercepted by sidebar rail on windows and linux (#618) 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 77826aeced1f6c3b9af17e4a251fdda5ed6248c4..ba77bddc279895af5ba2515279c97a73356486c7 100644 --- a/apps/web/src/components/ui/sidebar.tsx +++ b/apps/web/src/components/ui/sidebar.tsx @@ -566,7 +566,8 @@ function SidebarRail({