Skip to content

Commit 32ad567

Browse files
authored
Website: Replace 100vh with 100dvh to fix an "unscrollable" state on mobile devices (#1883)
1 parent ccb5bf8 commit 32ad567

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

packages/meta/src/mindmap/v1/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ body {
66

77
#mindmap {
88
width: 100vw;
9-
height: 100vh;
9+
height: 100dvh;
1010
background: white;
1111
}
1212

packages/playground/website/demos/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
body {
1111
width: 100vw;
12-
height: 100vh;
12+
height: 100dvh;
1313
padding: 20px;
1414
}
1515
</style>

packages/playground/website/demos/peer.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
}
1111
iframe {
1212
width: 100vw;
13-
height: 100vh;
13+
height: 100dvh;
1414
border: 0;
1515
}
1616
</style>
1717
</head>
1818
<body>
19-
<iframe id="wp" style="width: 100vw; height: 100vh"></iframe>
19+
<iframe id="wp" style="width: 100vw; height: 100dvh"></iframe>
2020
<script type="module">
2121
const { runDemo } = await import('./peer.ts');
2222
const searchParams = new URLSearchParams(document.location.search);

packages/playground/website/demos/sync.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
body {
1111
width: 100vw;
12-
height: 100vh;
12+
height: 100dvh;
1313
margin: 0;
1414
padding: 0;
1515
display: flex;

packages/playground/website/demos/time-traveling.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
body {
1111
width: 100vw;
12-
height: 100vh;
12+
height: 100dvh;
1313
margin: 0;
1414
padding: 0;
1515
display: flex;

packages/playground/website/src/components/layout/style.module.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ body {
1818
.layout {
1919
display: flex;
2020
width: 100vw;
21-
height: 100vh;
21+
height: 100dvh;
2222
overflow: hidden;
2323
}
2424

@@ -80,7 +80,7 @@ body {
8080
position: relative;
8181
flex: 1 1 auto;
8282
min-width: var(--site-view-min-width);
83-
height: 100vh;
83+
height: 100dvh;
8484
border: 0px solid var(--site-manager-background-color);
8585
transition: border-radius 300ms ease, border-width 300ms ease,
8686
transform 300ms ease;
@@ -123,7 +123,7 @@ body {
123123
content: '';
124124
display: block;
125125
width: 100%;
126-
height: 100vh;
126+
height: 100dvh;
127127
background-color: transparent;
128128
position: absolute;
129129
top: 0;

packages/playground/website/src/components/site-manager/sidebar/style.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.sidebar {
2-
height: 100vh;
2+
height: 100dvh;
33
display: flex;
44
flex-shrink: 0;
55
flex-direction: column;

packages/playground/website/src/components/site-manager/style.module.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.site-manager {
2-
height: 100vh;
2+
height: 100dvh;
33
overflow: hidden;
44
padding: var(--site-manager-border-width);
55
background-color: var(--site-manager-background-color);

0 commit comments

Comments
 (0)