mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
move viewport meta tag out of _document.tsx
This commit is contained in:
@@ -34,6 +34,9 @@ const PageMetadata = <Pathname extends Route['pathname']>(props: Props<Pathname>
|
||||
<meta name="twitter:title" content={ opengraph.title }/>
|
||||
{ opengraph.description && <meta name="twitter:description" content={ opengraph.description }/> }
|
||||
<meta property="twitter:image" content={ opengraph.imageUrl }/>
|
||||
|
||||
{ /* Prevent auto zoom in inputs on mobile */ }
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
|
||||
</Head>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -59,9 +59,6 @@ class MyDocument extends Document {
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/favicon/apple-touch-icon-180x180.png"/>
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/assets/favicon/android-chrome-192x192.png"/>
|
||||
<link rel="preload" as="image" href={ svgSprite.href }/>
|
||||
|
||||
{ /* Prevent auto zoom in inputs on mobile */ }
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main/>
|
||||
|
||||
Reference in New Issue
Block a user