Prevent iOS from zooming when focusing the editor
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Apr 2023 11:29:26 +0000 (13:29 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Apr 2023 11:29:26 +0000 (13:29 +0200)
Fixes WoltLab/editor#39

wcfsetup/install/files/style/ui/ckeditor.scss

index 5e8640f16cb8155abeb5a410639d113ace933f5c..ef6e9e87b55e1539d5a9a235c2de36740cb897d8 100644 (file)
@@ -281,3 +281,10 @@ html[data-color-scheme="dark"] {
 .text-right {
        text-align: right !important;
 }
+
+@include screen-xs {
+       html.iOS  .ck.ck-content {
+               /* Font sizes below 16px cause iOS to zoom when moving the focus inside of it. */
+               font-size: 16px;
+       }
+}