Skip to content

Commit

Permalink
Add fix for wayward mobile viewports
Browse files Browse the repository at this point in the history
  • Loading branch information
ThorntonMatthewD authored and oliviasculley committed Oct 17, 2023
1 parent 711a57a commit 67bdd4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Greenville OpenMapData</title>
</head>
<body class="bg-slate-900 text-slate-300 h-screen w-screen m-0 p-0">
<div id="app" class="h-screen w-screen" />
<body class="bg-slate-900 text-slate-300 h-full-screen w-screen m-0 p-0">
<div id="app" class="h-full w-screen" />
<script type="module" src="/src/main.ts"></script>
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions src/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 67bdd4f

Please sign in to comment.