mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 07:25:20 +00:00
[Beta] Fix font jumps on iOS
This commit is contained in:
@@ -74,6 +74,7 @@ function SandpackRoot(props: SandpackProps) {
|
||||
hidden: true,
|
||||
};
|
||||
|
||||
debugger;
|
||||
return (
|
||||
<div className="sandpack sandpack--playground sandbox my-8">
|
||||
<SandpackProvider
|
||||
|
||||
@@ -401,11 +401,13 @@ html.dark .sp-devtools > div {
|
||||
}
|
||||
|
||||
/**
|
||||
* For iOS: prevent browser zoom when clicking on sandbox
|
||||
* For iOS: prevent browser zoom when clicking on sandbox.
|
||||
* Does NOT apply to code blocks.
|
||||
*/
|
||||
@media screen and (max-width: 768px) {
|
||||
@supports (-webkit-overflow-scrolling: touch) {
|
||||
.cm-content {
|
||||
.sandbox .cm-content,
|
||||
.sandbox .sp-code-editor .sp-pre-placeholder {
|
||||
font-size: initial;
|
||||
}
|
||||
.DocSearch-Input {
|
||||
|
||||
Reference in New Issue
Block a user