fix: use svh unit for body height

On mobile, viewport height can be dynamic due to e.g. collapsible tab
bar. vh is based on the largest viewport height, so specifying 100vh
will cause part of the body to be covered by e.g. expanded tab bar.
using svh fixes this issue, as it is based on the smallest possible
viewport height instead e.g. the viewport height when the tab bar is
expanded.
This commit is contained in:
2024-08-01 15:58:38 +01:00
parent 05dde2e724
commit f661f29b67

View File

@@ -31,6 +31,7 @@ body {
body {
width: calc(100% - 4rem - 2px);
height: calc(100svh - 6rem - 2px);
height: calc(100vh - 6rem - 2px);
padding: 2rem;
margin: 0;