From 314a7f2be02bface4085fb3ce6920ab9aa86fb8e Mon Sep 17 00:00:00 2001 From: hippoz <10706925-hippoz@users.noreply.gitlab.com> Date: Tue, 2 Aug 2022 22:36:18 +0300 Subject: [PATCH] hopefully fix mobile viewport weirdness --- frontend/public/global.css | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/public/global.css b/frontend/public/global.css index 5f66b94..cc517e8 100644 --- a/frontend/public/global.css +++ b/frontend/public/global.css @@ -57,11 +57,14 @@ --radius-lg: calc(2 * var(--radius-unit)); --radius-xl: calc(3.25 * var(--radius-unit)); --radius-xxl: calc(5.25 * var(--sradius-unit)); + + --100vw: calc(100.0 * 1vw); + --100vh: calc(100.0 * 1vh); } html, body { - width: 100%; - height: 100%; + width: var(--100vw); + height: var(--100vh); } body {