mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-22 01:29:57 -06:00
fix sticky sidebar
This commit is contained in:
@@ -81,7 +81,7 @@ const AuthFooter = ({ collapsed, accountMenuItems }) => {
|
||||
return (
|
||||
<Stack
|
||||
direction="row"
|
||||
height="50px"
|
||||
height="var(--env-var-side-bar-auth-footer-height)"
|
||||
alignItems="center"
|
||||
py={theme.spacing(4)}
|
||||
px={theme.spacing(8)}
|
||||
|
||||
@@ -91,9 +91,15 @@ const Sidebar = () => {
|
||||
|
||||
return (
|
||||
<Stack
|
||||
width={collapsed ? "64px" : "var(--env-var-side-bar-width)"}
|
||||
height="100vh"
|
||||
width={
|
||||
collapsed
|
||||
? "var(--env-var-side-bar-collapsed-width)"
|
||||
: "var(--env-var-side-bar-width)"
|
||||
}
|
||||
component="aside"
|
||||
position="relative"
|
||||
position="sticky"
|
||||
top={0}
|
||||
borderRight={`1px solid ${theme.palette.primary.lowContrast}`}
|
||||
paddingTop={theme.spacing(6)}
|
||||
paddingBottom={theme.spacing(6)}
|
||||
|
||||
@@ -28,6 +28,8 @@ html {
|
||||
|
||||
--env-var-nav-bar-height: 70px;
|
||||
--env-var-side-bar-width: 250px;
|
||||
--env-var-side-bar-collapsed-width: 64px;
|
||||
--env-var-side-bar-auth-footer-height: 50px;
|
||||
|
||||
--env-var-spacing-1: 12px;
|
||||
--env-var-spacing-1-plus: 16px;
|
||||
|
||||
Reference in New Issue
Block a user