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', }} >