Fix layout action bar fixed instead of sticky

This commit is contained in:
Krzysztof Bialoglowicz 2019-10-22 13:32:45 +02:00
parent 98020ba67f
commit 46baa5102f

View file

@ -42,9 +42,15 @@ import ThemeSwitch from "./ThemeSwitch";
const styles = (theme: Theme) => const styles = (theme: Theme) =>
createStyles({ createStyles({
appAction: { appAction: {
[theme.breakpoints.down("sm")]: {
left: 0,
width: "100%"
},
bottom: 0, bottom: 0,
gridColumn: 2, gridColumn: 2,
position: "sticky", left: 210,
position: "fixed",
width: "calc(100% - 210px)",
zIndex: 10 zIndex: 10
}, },
appLoader: { appLoader: {
@ -252,10 +258,7 @@ const styles = (theme: Theme) =>
flex: 1, flex: 1,
flexGrow: 1, flexGrow: 1,
marginLeft: 0, marginLeft: 0,
paddingBottom: theme.spacing.unit, paddingBottom: theme.spacing.unit * 10
[theme.breakpoints.up("sm")]: {
paddingBottom: theme.spacing.unit * 3
}
} }
}); });