fixed margin causing app to scroll when it shouldn't
This commit is contained in:
parent
e56c5f0781
commit
ffa060cee8
3 changed files with 73 additions and 75 deletions
|
|
@ -11,71 +11,73 @@ import SideNavigator from "navigation/SideNavigator";
|
|||
import { useState } from "react";
|
||||
import BottomNavigator from "navigation/BottomNavigator";
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
const useStyles = makeStyles((theme: Theme) => {
|
||||
return ({
|
||||
appBar: {
|
||||
zIndex: theme.zIndex.drawer + 1,
|
||||
backgroundImage: "none", // This prevents de-saturation of header in dark mode
|
||||
backgroundColor: "#272727"
|
||||
},
|
||||
toolbar: {
|
||||
marginLeft: theme.spacing(0.5),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
marginLeft: theme.spacing(1.5)
|
||||
}
|
||||
},
|
||||
buttonContainer: {
|
||||
marginRight: theme.spacing(0.5),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
marginRight: theme.spacing(1.5)
|
||||
},
|
||||
color: getSignatureAccentColour() + " !important"
|
||||
},
|
||||
button: {
|
||||
color: getSignatureAccentColour() + " !important"
|
||||
},
|
||||
hide: {
|
||||
display: "none"
|
||||
},
|
||||
logoContainer: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
height: "56px",
|
||||
justifyContent: "flex-start",
|
||||
[theme.breakpoints.up("md")]: {
|
||||
height: "64px"
|
||||
}
|
||||
},
|
||||
logoLink: {
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
borderRadius: "5px",
|
||||
backgroundColor: hasTransparentLogoBG()
|
||||
? ""
|
||||
: theme.palette.mode === "light"
|
||||
? "#fff"
|
||||
: "#0000"
|
||||
},
|
||||
HeaderLogo: {
|
||||
objectFit: "cover",
|
||||
height: "56px",
|
||||
width: "auto",
|
||||
padding: theme.spacing(1),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
height: "64px"
|
||||
}
|
||||
},
|
||||
appBarRight: {
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
marginLeft: theme.spacing(2),
|
||||
marginRight: theme.spacing(1),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
marginLeft: theme.spacing(3),
|
||||
marginRight: theme.spacing(2)
|
||||
}
|
||||
},
|
||||
}));
|
||||
zIndex: theme.zIndex.drawer + 1,
|
||||
backgroundImage: "none", // This prevents de-saturation of header in dark mode
|
||||
backgroundColor: theme.palette.mode === "light" ? "#3b3b3b" : "#272727"
|
||||
},
|
||||
toolbar: {
|
||||
marginLeft: theme.spacing(0.5),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
marginLeft: theme.spacing(1.5)
|
||||
}
|
||||
},
|
||||
buttonContainer: {
|
||||
marginRight: theme.spacing(0.5),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
marginRight: theme.spacing(1.5)
|
||||
},
|
||||
color: getSignatureAccentColour() + " !important"
|
||||
},
|
||||
button: {
|
||||
color: getSignatureAccentColour() + " !important"
|
||||
},
|
||||
hide: {
|
||||
display: "none"
|
||||
},
|
||||
logoContainer: {
|
||||
display: "flex",
|
||||
alignItems: "center",
|
||||
height: "56px",
|
||||
justifyContent: "flex-start",
|
||||
[theme.breakpoints.up("md")]: {
|
||||
height: "64px"
|
||||
}
|
||||
},
|
||||
logoLink: {
|
||||
display: "flex",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
borderRadius: "5px",
|
||||
backgroundColor: hasTransparentLogoBG()
|
||||
? ""
|
||||
: theme.palette.mode === "light"
|
||||
? "#fff"
|
||||
: "#0000"
|
||||
},
|
||||
HeaderLogo: {
|
||||
objectFit: "cover",
|
||||
height: "56px",
|
||||
width: "auto",
|
||||
padding: theme.spacing(1),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
height: "64px"
|
||||
}
|
||||
},
|
||||
appBarRight: {
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
marginLeft: theme.spacing(2),
|
||||
marginRight: theme.spacing(1),
|
||||
[theme.breakpoints.up("md")]: {
|
||||
marginLeft: theme.spacing(3),
|
||||
marginRight: theme.spacing(2)
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
export default function Header() {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue