Commit b4667a2
committed
Fix code block font size on mobile (too large)
Root cause: mobile Safari inflates text inside `pre` elements when
content is wider than the viewport, overriding the computed font-size.
The existing `text-size-adjust: 100%` on `html` does not propagate
fully to `pre` elements with `overflow: auto`.
Fix:
- Add `-webkit-text-size-adjust: 100%` directly on pre/code/prism-code
to prevent mobile Safari text inflation
- Add mobile media query (max-width: 768px) reducing code block font
to 12px for better visual proportion on small screens
https://claude.ai/code/session_01UjvipgoS6qs1ikzifd77Xi1 parent d06c79a commit b4667a2
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
31 | 40 | | |
32 | 41 | | |
33 | 42 | | |
| |||
0 commit comments