1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-19 23:40:07 +00:00

feat: prevent arbitrary zooming on mobile devices (#234)

This commit is contained in:
Shinigami 2022-11-29 17:27:35 +01:00 committed by GitHub
parent 5c5143d2c9
commit 091263ea05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -69,6 +69,10 @@ export default defineNuxtConfig({
},
app: {
keepalive: true,
head: {
// Prevent arbitrary zooming on mobile devices
viewport: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no',
},
},
i18n: {
locales: [

View file

@ -123,3 +123,8 @@ html.dark {
html {
--at-apply: bg-base text-base;
}
body {
/* Prevent arbitrary zooming on mobile devices */
touch-action: pan-x pan-y;
}