Prevent scrollbar from shifting content
This commit is contained in:
1 parent
d117f38a83
commit
409bb3262f
4 files changed
+5
-1
No files matched your search
@@ -306,6 +306,7 @@ function Sidebar() {
|
|||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
open={Boolean(anchorEl) && popup === item.name}
|
open={Boolean(anchorEl) && popup === item.name}
|
||||||
onClose={closePopup}
|
onClose={closePopup}
|
||||||
|
disableScrollLock
|
||||||
anchorOrigin={{
|
anchorOrigin={{
|
||||||
vertical: "top",
|
vertical: "top",
|
||||||
horizontal: "right",
|
horizontal: "right",
|
||||||
@@ -591,6 +592,7 @@ function Sidebar() {
|
|||||||
anchorEl={anchorEl}
|
anchorEl={anchorEl}
|
||||||
open={Boolean(anchorEl) && popup === "logout"}
|
open={Boolean(anchorEl) && popup === "logout"}
|
||||||
onClose={closePopup}
|
onClose={closePopup}
|
||||||
|
disableScrollLock
|
||||||
anchorOrigin={{
|
anchorOrigin={{
|
||||||
vertical: "top",
|
vertical: "top",
|
||||||
horizontal: "right",
|
horizontal: "right",
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ const Account = ({ open = "profile" }) => {
|
|||||||
const { user } = useSelector((state) => state.auth);
|
const { user } = useSelector((state) => state.auth);
|
||||||
|
|
||||||
const requiredRoles = ["superadmin", "admin"];
|
const requiredRoles = ["superadmin", "admin"];
|
||||||
let tabList = ["Profile", "Team", "Password"];
|
let tabList = ["Profile", "Password", "Team"];
|
||||||
const hideTeams = !requiredRoles.some((role) => user.role.includes(role));
|
const hideTeams = !requiredRoles.some((role) => user.role.includes(role));
|
||||||
if (hideTeams) {
|
if (hideTeams) {
|
||||||
tabList = ["Profile", "Password"];
|
tabList = ["Profile", "Password"];
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ const darkTheme = createTheme({
|
|||||||
backgroundImage:
|
backgroundImage:
|
||||||
"radial-gradient(circle, #09090b, #0c0c0e, #0f0f11, #111113, #131315, #131315, #131315, #131315, #111113, #0f0f11, #0c0c0e, #09090b)",
|
"radial-gradient(circle, #09090b, #0c0c0e, #0f0f11, #111113, #131315, #131315, #131315, #131315, #111113, #0f0f11, #0c0c0e, #09090b)",
|
||||||
lineHeight: "inherit",
|
lineHeight: "inherit",
|
||||||
|
paddingLeft: "calc(100vw - 100%)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -77,6 +77,7 @@ const lightTheme = createTheme({
|
|||||||
backgroundImage:
|
backgroundImage:
|
||||||
"radial-gradient(circle, #fcfcfd, #fdfcfd, #fdfdfd, #fefdfe, #fefefe, #fefefe, #fefefe, #fefefe, #fefdfe, #fdfdfd, #fdfcfd, #fcfcfd)",
|
"radial-gradient(circle, #fcfcfd, #fdfcfd, #fdfdfd, #fefdfe, #fefefe, #fefefe, #fefefe, #fefefe, #fefdfe, #fdfdfd, #fdfcfd, #fcfcfd)",
|
||||||
lineHeight: "inherit",
|
lineHeight: "inherit",
|
||||||
|
paddingLeft: "calc(100vw - 100%)",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user