aboutsummaryrefslogtreecommitdiffstats
path: root/core/templates/layout.guest.php
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-08-21 02:59:14 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2024-08-21 12:33:53 +0000
commita67d98c31ee2a846993a6d494fb1df1e7a95074c (patch)
tree78aca20243607815b4cb337fa2466f3cb16d3d5d /core/templates/layout.guest.php
parentccc39a41bbc2d9f9ff50a297a101fc55773d88ab (diff)
downloadnextcloud-server-a67d98c31ee2a846993a6d494fb1df1e7a95074c.tar.gz
nextcloud-server-a67d98c31ee2a846993a6d494fb1df1e7a95074c.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.guest.php')
-rw-r--r--core/templates/layout.guest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/templates/layout.guest.php b/core/templates/layout.guest.php
index 03682a24193..f006a6fda38 100644
--- a/core/templates/layout.guest.php
+++ b/core/templates/layout.guest.php
@@ -20,7 +20,9 @@ p($theme->getTitle());
?>
</title>
<meta name="csp-nonce" nonce="<?php p($_['cspNonce']); /* Do not pass into "content" to prevent exfiltration */ ?>">
- <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']);
+ } ?>">
<?php if ($theme->getiTunesAppId() !== '') { ?>
<meta name="apple-itunes-app" content="app-id=<?php p($theme->getiTunesAppId()); ?>">
<?php } ?>