From 8c8c7bbb5d011b17178414d2b3497fe28c4bb56e Mon Sep 17 00:00:00 2001 From: Matthias Portzel Date: Mon, 6 Mar 2023 23:20:59 -0500 Subject: [PATCH] Use svh instead of vh for mobile --- thoughts/static/thoughts/main.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thoughts/static/thoughts/main.css b/thoughts/static/thoughts/main.css index 9346442..b94f6aa 100644 --- a/thoughts/static/thoughts/main.css +++ b/thoughts/static/thoughts/main.css @@ -7,8 +7,11 @@ body { padding: 0; margin: 0; + /* Fallback (hack) to vw and vh if svw and svh aren't supported */ width: 100vw; height: 100vh; + width: 100svw; + height: 100svh; overflow: hidden; background: var(--accent-color);