diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-21 02:59:14 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-08-21 13:01:18 +0200 |
commit | ec00367f3006dfe0389854a5340bf4effcc8452c (patch) | |
tree | 7b97c85dcb431b3a6c8f8c04e5bb2c69197c39f7 /core/templates/layout.base.php | |
parent | c07cf51bebf4dcc90a522e0fc580365ca4ef02ef (diff) | |
download | nextcloud-server-ec00367f3006dfe0389854a5340bf4effcc8452c.tar.gz nextcloud-server-ec00367f3006dfe0389854a5340bf4effcc8452c.zip |
fix: Disable auto-zoom on iOS
When using iOS and focussing an input element the view should not be zoomed.
So if we set a maximum scale iOS will not auto-zoom but still allow users to zoom.
But we can not do this by default as this will disable user zoom on Chrome.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/templates/layout.base.php')
-rw-r--r-- | core/templates/layout.base.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/templates/layout.base.php b/core/templates/layout.base.php index e74cd4b8cd2..44731172760 100644 --- a/core/templates/layout.base.php +++ b/core/templates/layout.base.php @@ -12,7 +12,9 @@ <title> <?php p($theme->getTitle()); ?> </title> - <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> + <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0<?php if (isset($_['viewport_maximum_scale'])) { + p(', maximum-scale=' . $_['viewport_maximum_scale']); + } ?>"> <meta name="theme-color" content="<?php p($theme->getColorPrimary()); ?>"> <meta name="csp-nonce" nonce="<?php p($_['cspNonce']); /* Do not pass into "content" to prevent exfiltration */ ?>"> <link rel="icon" href="<?php print_unescaped(image_path('core', 'favicon.ico')); /* IE11+ supports png */ ?>"> |