Skip to content

Commit d9c449d

Browse files
committed
fix: add text-size-adjust to .code-view-container scroll container
Place -webkit-text-size-adjust: 100% on the scroll container itself so iOS Safari respects it across example switches and React remounts.
1 parent ecc6302 commit d9c449d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/example-preview/components/index.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
overflow: auto;
6565
min-height: 0;
6666
background: var(--shiki-dark-bg, var(--rp-code-block-bg, var(--semi-color-bg-1)));
67+
-webkit-text-size-adjust: 100%;
68+
text-size-adjust: 100%;
6769
}
6870
.code-tab {
6971
width: 100%;

0 commit comments

Comments
 (0)