fix: 修复侧边栏拖动条在网页界面区域失效的问题

This commit is contained in:
2026-03-11 22:11:27 +08:00
parent 1b80fd036d
commit 04fc326a8d
2 changed files with 3 additions and 2 deletions

View File

@@ -34,5 +34,5 @@ export const useSidebarResize = (initialWidth: number = 250) => {
}
}, [isResizing])
return { sidebarWidth, startResizing }
return { sidebarWidth, startResizing, isResizing }
}

View File

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