forked from Mirrors/elk
fix(ui): add viewport header to enable/disable pinch to zoom in Safari (#1590)
This commit is contained in:
parent
a46ec605e1
commit
a2fb458696
1 changed files with 4 additions and 0 deletions
|
@ -18,6 +18,10 @@ export function setupPageHeader() {
|
||||||
dir: () => localeMap[locale.value] ?? 'auto',
|
dir: () => localeMap[locale.value] ?? 'auto',
|
||||||
class: () => enablePinchToZoom.value ? ['enable-pinch-to-zoom'] : [],
|
class: () => enablePinchToZoom.value ? ['enable-pinch-to-zoom'] : [],
|
||||||
},
|
},
|
||||||
|
meta: [{
|
||||||
|
name: 'viewport',
|
||||||
|
content: () => `width=device-width,initial-scale=1${enablePinchToZoom.value ? '' : ',maximum-scale=1,user-scalable=0'},viewport-fit=cover`,
|
||||||
|
}],
|
||||||
titleTemplate: (title) => {
|
titleTemplate: (title) => {
|
||||||
let titleTemplate = title ?? ''
|
let titleTemplate = title ?? ''
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue