mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
fixed bug: if zoom out the browser, the components can't be clicked
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { useEffect } from 'react'
|
||||
import { useDispatch, useSelector } from 'react-redux'
|
||||
import { Outlet } from 'react-router-dom'
|
||||
|
||||
@@ -69,10 +68,10 @@ const MainLayout = () => {
|
||||
dispatch({ type: SET_MENU, opened: !leftDrawerOpened })
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
dispatch({ type: SET_MENU, opened: !matchDownMd })
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [matchDownMd])
|
||||
//useEffect(() => {
|
||||
// dispatch({ type: SET_MENU, opened: !matchDownMd })
|
||||
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
//}, [matchDownMd])
|
||||
|
||||
return (
|
||||
<Box sx={{ display: 'flex' }}>
|
||||
|
||||
Reference in New Issue
Block a user