Skip to content

Commit dafa585

Browse files
committed
fix for full screen on mobile
1 parent 12f3b88 commit dafa585

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="min-h-screen bg-[color:var(--ink)] text-[color:var(--cream)]">
2+
<div class="app-root bg-[color:var(--ink)] text-[color:var(--cream)]">
33
<header class="fixed inset-x-0 top-0 z-30">
44
<div class="mx-auto flex w-full max-w-6xl items-center justify-between px-6 py-4">
55
<div class="flex items-center gap-3">

src/style.css

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
body {
1616
margin: 0;
1717
min-height: 100vh;
18+
min-height: 100svh;
19+
min-height: 100dvh;
1820
font-family: "Sora", "IBM Plex Sans", "SF Pro Text", sans-serif;
1921
background: var(--ink);
2022
color: var(--cream);
@@ -24,6 +26,8 @@ body {
2426

2527
#app {
2628
min-height: 100vh;
29+
min-height: 100svh;
30+
min-height: 100dvh;
2731
}
2832

2933
::-webkit-scrollbar {
@@ -45,10 +49,18 @@ body {
4549
background: rgba(255, 255, 255, 0.35);
4650
}
4751

52+
.app-root {
53+
min-height: 100vh;
54+
min-height: 100svh;
55+
min-height: 100dvh;
56+
}
57+
4858
.map-root {
4959
position: relative;
50-
width: 100vw;
60+
width: 100%;
5161
height: 100vh;
62+
height: 100svh;
63+
height: 100dvh;
5264
overflow: hidden;
5365
}
5466

0 commit comments

Comments
 (0)