From 0b5274b83b5dbd0521194963d4bf89be30d7a20e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 27 Apr 2023 13:29:26 +0200 Subject: [PATCH] Prevent iOS from zooming when focusing the editor Fixes WoltLab/editor#39 --- wcfsetup/install/files/style/ui/ckeditor.scss | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/wcfsetup/install/files/style/ui/ckeditor.scss b/wcfsetup/install/files/style/ui/ckeditor.scss index 5e8640f16c..ef6e9e87b5 100644 --- a/wcfsetup/install/files/style/ui/ckeditor.scss +++ b/wcfsetup/install/files/style/ui/ckeditor.scss @@ -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; + } +} -- 2.20.1