Skip to content

Commit 0d212ec

Browse files
Merge pull request #33 from DiamondLightSource/landing-page-bg
Changed height of <Box> to fill background
2 parents 01e73b3 + d32d4cc commit 0d212ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/routes/LandingPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Box, Grid, Stack, Typography } from "@mui/material";
22
import DLSAppBar from "../components/AppBar";
3-
import { useWindowHeight, APP_BAR_HEIGHT } from "../utils/helper";
3+
import { APP_BAR_HEIGHT } from "../utils/helper";
44
import LinkCard from "../components/LinkCard";
55
import { PageRouteInfo } from "./PageRouteInfo";
66
import { useEffect } from "react";
@@ -18,7 +18,7 @@ export function LandingPage() {
1818
sx={{
1919
display: "flex",
2020
width: "100%",
21-
height: `calc(${useWindowHeight()}px - ${APP_BAR_HEIGHT}px - 10px)`,
21+
height: "100%",
2222
margin: `calc(${APP_BAR_HEIGHT}px + 5px) 5px 5px 5px`
2323
}}
2424
>

0 commit comments

Comments
 (0)