fix: 修复侧边栏拖动条在网页界面区域失效的问题
This commit is contained in:
@@ -34,5 +34,5 @@ export const useSidebarResize = (initialWidth: number = 250) => {
|
||||
}
|
||||
}, [isResizing])
|
||||
|
||||
return { sidebarWidth, startResizing }
|
||||
return { sidebarWidth, startResizing, isResizing }
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user