From c5c28dcde57d99765485e7a34b83958f2b37a83c Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sun, 17 Nov 2024 10:36:14 +0000 Subject: [PATCH] Feature/show scroll bar --- .../layouts/Dashboard/Content/index.jsx | 2 +- .../layouts/Dashboard/Sidebar/SidebarList.jsx | 2 +- src/components/layouts/Dashboard/index.jsx | 12 +++++- src/core/components/DataTable.jsx | 2 +- src/layouts/FullPageLayout.jsx | 4 +- src/layouts/MuiLayout.jsx | 38 +++++++------------ 6 files changed, 28 insertions(+), 32 deletions(-) diff --git a/src/components/layouts/Dashboard/Content/index.jsx b/src/components/layouts/Dashboard/Content/index.jsx index 272f1fb..9593f8f 100644 --- a/src/components/layouts/Dashboard/Content/index.jsx +++ b/src/components/layouts/Dashboard/Content/index.jsx @@ -48,7 +48,7 @@ const Content = (props) => { }, [router]); return ( - + + {itemMenu.map((itemArr, index) => { let isDividerVisible = false; return ( diff --git a/src/components/layouts/Dashboard/index.jsx b/src/components/layouts/Dashboard/index.jsx index e687f6f..94c4184 100644 --- a/src/components/layouts/Dashboard/index.jsx +++ b/src/components/layouts/Dashboard/index.jsx @@ -17,7 +17,7 @@ const DashboardLayouts = (props) => { }; return ( - +
{ handleDrawerToggle={handleDrawerToggle} drawerWidth={drawerWidth} /> - + diff --git a/src/core/components/DataTable.jsx b/src/core/components/DataTable.jsx index 1dd7ef4..307bdff 100644 --- a/src/core/components/DataTable.jsx +++ b/src/core/components/DataTable.jsx @@ -142,7 +142,7 @@ function DataTable(props) { alignSelf: "center", whiteSpace: "nowrap", maxWidth: { xs: 100, sm: "100%" }, - overflowX: "scroll", + overflowX: "auto", }} variant="caption" > diff --git a/src/layouts/FullPageLayout.jsx b/src/layouts/FullPageLayout.jsx index c47af5d..61701b7 100644 --- a/src/layouts/FullPageLayout.jsx +++ b/src/layouts/FullPageLayout.jsx @@ -8,8 +8,8 @@ const FullPageLayout = (props) => { sx={{ width: "100%", height: "100%", - overflowY: "scroll", - overflowX: "scroll", + overflowY: "auto", + overflowX: "auto", ...props?.sx, }} > diff --git a/src/layouts/MuiLayout.jsx b/src/layouts/MuiLayout.jsx index 34739fd..53fe430 100644 --- a/src/layouts/MuiLayout.jsx +++ b/src/layouts/MuiLayout.jsx @@ -22,38 +22,26 @@ const MuiLayout = ({ children, isBot }) => {