Skip to content

Commit

Permalink
fix(ui): Root grid height
Browse files Browse the repository at this point in the history
  • Loading branch information
ccoors authored and Hypfer committed Sep 26, 2021
1 parent 5177c47 commit 1d9a244
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions frontend/src/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ import ControlsBottomSheet from "./controls/ControlsBottomSheet";
import {useIsMobileView} from "./hooks";
import MapPage from "./map";

const RootGrid = styled(Grid)({
height: "100%",
flexWrap: "nowrap",
const RootGrid = styled(Grid)(({ theme }) => {
return {
height: `calc(100% - ${theme.mixins.toolbar.height}`,
flexWrap: "nowrap",
};
});
const ScrollableGrid = styled(Grid)({
overflow: "auto",
Expand Down

0 comments on commit 1d9a244

Please sign in to comment.