Prevent scrollbar from shifting content

This commit is contained in:
Daniel Cojocea committed 2024-09-07 14:54:19 -04:00
1 parent d117f38a83
commit 409bb3262f
4 files changed
+5 -1

No files matched your search

+2
View File
@@ -306,6 +306,7 @@ function Sidebar() {
anchorEl={anchorEl}
open={Boolean(anchorEl) && popup === item.name}
onClose={closePopup}
disableScrollLock
anchorOrigin={{
vertical: "top",
horizontal: "right",
@@ -591,6 +592,7 @@ function Sidebar() {
anchorEl={anchorEl}
open={Boolean(anchorEl) && popup === "logout"}
onClose={closePopup}
disableScrollLock
anchorOrigin={{
vertical: "top",
horizontal: "right",
+1 -1
View File
@@ -25,7 +25,7 @@ const Account = ({ open = "profile" }) => {
const { user } = useSelector((state) => state.auth);
const requiredRoles = ["superadmin", "admin"];
let tabList = ["Profile", "Team", "Password"];
let tabList = ["Profile", "Password", "Team"];
const hideTeams = !requiredRoles.some((role) => user.role.includes(role));
if (hideTeams) {
tabList = ["Profile", "Password"];
+1
View File
@@ -80,6 +80,7 @@ const darkTheme = createTheme({
backgroundImage:
"radial-gradient(circle, #09090b, #0c0c0e, #0f0f11, #111113, #131315, #131315, #131315, #131315, #111113, #0f0f11, #0c0c0e, #09090b)",
lineHeight: "inherit",
paddingLeft: "calc(100vw - 100%)",
},
},
},
+1
View File
@@ -77,6 +77,7 @@ const lightTheme = createTheme({
backgroundImage:
"radial-gradient(circle, #fcfcfd, #fdfcfd, #fdfdfd, #fefdfe, #fefefe, #fefefe, #fefefe, #fefefe, #fefdfe, #fdfdfd, #fdfcfd, #fcfcfd)",
lineHeight: "inherit",
paddingLeft: "calc(100vw - 100%)",
},
},
},