From 71c419a8180e378f80ef62f8a8452481e540cb66 Mon Sep 17 00:00:00 2001 From: Matthew Russell Date: Fri, 2 Dec 2022 15:24:15 -0800 Subject: [PATCH] chore: move meta viewport back to app after next warning --- apps/trading/pages/_app.page.tsx | 4 ++++ apps/trading/pages/_document.page.tsx | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/trading/pages/_app.page.tsx b/apps/trading/pages/_app.page.tsx index 6bfe28604..84009aaa2 100644 --- a/apps/trading/pages/_app.page.tsx +++ b/apps/trading/pages/_app.page.tsx @@ -47,6 +47,10 @@ function AppBody({ Component }: AppProps) { return ( + + {/* Cannot use meta tags in _document.page.tsx see https://nextjs.org/docs/messages/no-document-viewport-meta */} + + <div className="h-full relative dark:bg-black dark:text-white z-0 grid grid-rows-[min-content,1fr,min-content]"> <AppLoader> diff --git a/apps/trading/pages/_document.page.tsx b/apps/trading/pages/_document.page.tsx index a31315c8a..88a71c7d7 100644 --- a/apps/trading/pages/_document.page.tsx +++ b/apps/trading/pages/_document.page.tsx @@ -4,7 +4,6 @@ export default function Document() { return ( <Html> <Head> - <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="stylesheet" href="https://static.vega.xyz/fonts.css" /> <link rel="preload"