Skip to content

Commit 833a683

Browse files
committed
Fix for iOS
1 parent 6d3cf85 commit 833a683

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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)