Skip to content

Commit 47e129c

Browse files
committed
fix(ui): Fix ValetudoSplash showing scrollbars with some specific browser window dimensions
1 parent 6bec34d commit 47e129c

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

frontend/src/components/ValetudoSplash.tsx

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@ const ValetudoSplash = (): React.ReactElement => {
99
container
1010
sx={{
1111
width: "90%",
12-
height: "50%",
13-
margin: "auto",
14-
marginTop: "25%",
15-
marginBottom: "25%",
12+
margin: "0 auto",
1613
maxWidth: "600px",
17-
minHeight: "90%",
14+
height: "100vh",
1815
}}
1916
direction="column"
2017
alignItems="center"
21-
justifyContent="center"
18+
justifyContent="flex-start"
19+
paddingTop="20vh"
2220
>
2321
<Grid2
22+
sx={{
23+
width: "90%",
24+
maxWidth: "270px"
25+
}}
2426
>
2527
<SplashLogo
2628
style={{
27-
width: "90%",
28-
marginLeft: "5%"
29+
width: "100%",
30+
height: "auto",
31+
display: "block"
2932
}}
3033
/>
3134
</Grid2>

0 commit comments

Comments
 (0)