Skip to content

Commit

Permalink
fix(client): tweak ui
Browse files Browse the repository at this point in the history
  • Loading branch information
syuilo committed Feb 12, 2022
1 parent 64f4231 commit 7df8cd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/client/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7df8cd2

Please sign in to comment.