From 901cbbe7631820e93699dd0ebaf5dc7c07d335c2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 12 Feb 2022 14:43:21 +0900 Subject: [PATCH] fix(client): tweak ui #8311 --- packages/client/src/init.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index b7fc8b1d1..113324d49 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -95,8 +95,7 @@ window.addEventListener('resize', () => { if (['smartphone', 'tablet'].includes(deviceKind)) { const viewport = document.getElementsByName('viewport').item(0); viewport.setAttribute('content', - `${viewport.getAttribute('content')},minimum-scale=1,maximum-scale=1,user-scalable=no`); - document.head.appendChild(viewport); + `${viewport.getAttribute('content')}, minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover`); } //#region Set lang attr