From 67bdd4fa1cb6da1bf985f895687692da733d3e21 Mon Sep 17 00:00:00 2001 From: Matthew Thornton <44626690+ThorntonMatthewD@users.noreply.github.com> Date: Tue, 17 Oct 2023 00:03:39 -0400 Subject: [PATCH] Add fix for wayward mobile viewports --- index.html | 4 ++-- package.json | 1 + src/assets/style.css | 5 +++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 359264c..389df75 100644 --- a/index.html +++ b/index.html @@ -6,8 +6,8 @@ Greenville OpenMapData - -
+ +
diff --git a/package.json b/package.json index e65bd27..f113eaf 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.0", "scripts": { "dev": "vite --port 4173", + "dev:host": "vite --port 4173 --host", "build": "run-p type-check build-only", "preview": "vite preview", "test:unit": "vitest --environment jsdom --root src/ --watch=false", diff --git a/src/assets/style.css b/src/assets/style.css index 1de02d7..08fedcd 100644 --- a/src/assets/style.css +++ b/src/assets/style.css @@ -6,3 +6,8 @@ @apply underline hover:text-white active:text-white; @apply transition-all duration-300 ease-in-out; } + +/* Workaround for mobile viewports */ +.h-full-screen { + @apply fixed h-full overscroll-none; +}