fix: implement dynamic viewport height
This commit is contained in:
@@ -113,6 +113,11 @@ body {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
/* fallback */
|
||||||
|
height: 100dvh;
|
||||||
|
/* dynamic viewport height for modern browsers */
|
||||||
|
height: -webkit-fill-available;
|
||||||
|
/* iOS Safari fallback */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Typography */
|
/* Typography */
|
||||||
@@ -3334,6 +3339,9 @@ kbd {
|
|||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: calc(100vh - var(--navbar-height));
|
height: calc(100vh - var(--navbar-height));
|
||||||
|
/* fallback */
|
||||||
|
height: calc(100dvh - var(--navbar-height));
|
||||||
|
/* dynamic viewport for modern browsers */
|
||||||
min-height: 400px;
|
min-height: 400px;
|
||||||
background: #000;
|
background: #000;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user