From 04fc326a8d561c4d8972f0b489bf1974a847a72c Mon Sep 17 00:00:00 2001 From: ssdfasd <2156608475@qq.com> Date: Wed, 11 Mar 2026 22:11:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BE=A7=E8=BE=B9?= =?UTF-8?q?=E6=A0=8F=E6=8B=96=E5=8A=A8=E6=9D=A1=E5=9C=A8=E7=BD=91=E9=A1=B5?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=8C=BA=E5=9F=9F=E5=A4=B1=E6=95=88=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/ui/useSidebarResize.ts | 2 +- src/pages/NoteBrowser.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hooks/ui/useSidebarResize.ts b/src/hooks/ui/useSidebarResize.ts index c5b35d9..e6cb8a4 100644 --- a/src/hooks/ui/useSidebarResize.ts +++ b/src/hooks/ui/useSidebarResize.ts @@ -34,5 +34,5 @@ export const useSidebarResize = (initialWidth: number = 250) => { } }, [isResizing]) - return { sidebarWidth, startResizing } + return { sidebarWidth, startResizing, isResizing } } diff --git a/src/pages/NoteBrowser.tsx b/src/pages/NoteBrowser.tsx index 81fa563..fb4fa35 100644 --- a/src/pages/NoteBrowser.tsx +++ b/src/pages/NoteBrowser.tsx @@ -22,7 +22,7 @@ export const NoteBrowser = () => { useAutoLoadTabContent() const { opacity } = useWallpaper() - const { sidebarWidth, startResizing } = useSidebarResize(250) + const { sidebarWidth, startResizing, isResizing } = useSidebarResize(250) const { tabs, @@ -203,6 +203,7 @@ export const NoteBrowser = () => { className="flex-1 min-h-0 backdrop-blur-sm" style={{ backgroundColor: `rgba(var(--app-content-bg-rgb), ${opacity})`, + pointerEvents: isResizing ? 'none' : 'auto', }} >