Skip to content

Commit

Permalink
Fix zoom on mobile in input element
Browse files Browse the repository at this point in the history
  • Loading branch information
LoLei committed Mar 18, 2022
1 parent c5d5397 commit 10f7e24
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ class MyDocument extends Document {
render() {
return (
<Html>
<Head>{CssBaseline.flush()}</Head>
<Head>
{CssBaseline.flush()}
{/* Fix auto zoom in on mobile for fields with font size <16px https://stackoverflow.com/a/46254706/4644044 */}
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
</Head>
<body>
<Main />
<NextScript />
Expand Down

0 comments on commit 10f7e24

Please sign in to comment.