fix: Login screen not vertically centered on mobile (#4052)

This commit is contained in:
Tom Moor
2022-09-04 09:14:32 +02:00
committed by GitHub
parent e0e87ea6a2
commit c9156ae399
3 changed files with 10 additions and 3 deletions

View File

@@ -243,7 +243,7 @@ const CheckEmailIcon = styled(EmailIcon)`
const Background = styled(Fade)`
width: 100vw;
height: 100vh;
height: 100%;
background: ${(props) => props.theme.background};
display: flex;
`;

View File

@@ -12,7 +12,7 @@ export default createGlobalStyle`
html,
body {
width: 100%;
min-height: 100vh;
height: 100%;
margin: 0;
padding: 0;
print-color-adjust: exact;
@@ -39,6 +39,13 @@ export default createGlobalStyle`
text-rendering: optimizeLegibility;
}
@media (min-width: ${breakpoints.tablet}px) {
html,
body {
min-height: 100vh;
}
}
@media (min-width: ${breakpoints.tablet}px) and (display-mode: standalone) {
body:after {
content: "";

View File

@@ -47,7 +47,7 @@
#root {
flex: 1;
min-height: 100vh;
min-height: 100%;
width: 100%;
}
</style>