fix(ui): add viewport header to enable/disable pinch to zoom in Safari (#1590)
parent
a46ec605e1
commit
a2fb458696
|
@ -18,6 +18,10 @@ export function setupPageHeader() {
|
|||
dir: () => localeMap[locale.value] ?? 'auto',
|
||||
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) => {
|
||||
let titleTemplate = title ?? ''
|
||||
|
||||
|
|
Loading…
Reference in New Issue