Skip to content

Commit 719aa3c

Browse files
authored
Allow page zooming/scaling (#4082)
* Allow page zooming/scaling * Fix for iOS
1 parent 5c1f513 commit 719aa3c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

beta/src/components/Seo.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export const Seo = withRouter(
2727

2828
<meta
2929
name="viewport"
30-
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"
30+
content="width=device-width, initial-scale=1"
3131
/>
3232

3333
{title != null && <title key="title">{title}</title>}

beta/src/styles/sandpack.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,12 @@ html.dark .sp-loading {
191191
padding-left: var(--sp-space-1) !important;
192192
padding-right: var(--sp-space-1) !important;
193193
}
194+
195+
/* For iOS: prevent browser zoom when clicking on sandbox. */
196+
@media screen and (max-width: 768px) {
197+
@supports (-webkit-overflow-scrolling: touch) {
198+
.cm-content {
199+
font-size: initial;
200+
}
201+
}
202+
}

0 commit comments

Comments
 (0)