diff --git a/src/components/AppLayout/AppLayout.tsx b/src/components/AppLayout/AppLayout.tsx index 8b91f7b0b..b8c7f7193 100644 --- a/src/components/AppLayout/AppLayout.tsx +++ b/src/components/AppLayout/AppLayout.tsx @@ -48,15 +48,19 @@ const styles = (theme: Theme) => }, bottom: 0, gridColumn: 2, - left: 210, - position: "fixed", - width: "calc(100% - 210px)", + height: 70, + position: "sticky", zIndex: 10 }, appLoader: { height: appLoaderHeight, + marginBottom: theme.spacing.unit * 2, zIndex: 1201 }, + appLoaderPlaceholder: { + height: appLoaderHeight, + marginBottom: theme.spacing.unit * 2 + }, arrow: { marginLeft: theme.spacing.unit * 2, transition: theme.transitions.duration.standard + "ms" @@ -81,11 +85,7 @@ const styles = (theme: Theme) => header: { display: "flex", height: 40, - marginBottom: theme.spacing.unit * 3, - marginTop: theme.spacing.unit * 2 - }, - hide: { - opacity: 0 + marginBottom: theme.spacing.unit * 3 }, isMenuSmall: { "& path": { @@ -258,7 +258,15 @@ const styles = (theme: Theme) => flex: 1, flexGrow: 1, marginLeft: 0, - paddingBottom: theme.spacing.unit * 10 + paddingBottom: theme.spacing.unit, + [theme.breakpoints.up("sm")]: { + paddingBottom: theme.spacing.unit * 3 + } + }, + viewContainer: { + minHeight: `calc(100vh - ${theme.spacing.unit * 2 + + appLoaderHeight + + 70}px)` } }); @@ -319,12 +327,6 @@ const AppLayout = withStyles(styles, { {({ isProgress }) => ( -
-
- -
-
setDrawerState(!isDrawerOpened)} - > - - - - -
-
-
-
- + {isProgress ? ( + + ) : ( +
+ )} +
+
+ +
setDrawerState(!isDrawerOpened)} > - - ) - } - className={classes.userChip} - label={ - <> - {user.email} - - - } - onClick={() => setMenuState(!isMenuOpened)} + + + + +
+
+
+
+ - - {({ TransitionProps, placement }) => ( - - - setMenuState(false)} - mouseEvent="onClick" - > - - - - - - - - - - - - )} - + + ) + } + className={classes.userChip} + label={ + <> + {user.email} + + + } + onClick={() => setMenuState(!isMenuOpened)} + /> + + {({ TransitionProps, placement }) => ( + + + + setMenuState(false) + } + mouseEvent="onClick" + > + + + + + + + + + + + + )} + +
-
-
+ +
+
{children}
-
{children}