From bd3f117545c43aaab7865cde4082174c643f5abe Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:02:30 +0530 Subject: [PATCH] [PWA-2] fix: pwa input zoom effect (#5402) * fix: pwa input zoom effect * fix: pwa input zoom effect * fix: pwa input zoom effect * fix: pwa sticky issue comment * chore: code refactor * chore: code refactor --- web/app/layout.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/web/app/layout.tsx b/web/app/layout.tsx index 50b7b379956..683c450ab89 100644 --- a/web/app/layout.tsx +++ b/web/app/layout.tsx @@ -1,4 +1,4 @@ -import { Metadata } from "next"; +import { Metadata, Viewport } from "next"; import Script from "next/script"; // styles import "@/styles/globals.css"; @@ -28,6 +28,15 @@ export const metadata: Metadata = { }, }; +export const viewport: Viewport = { + minimumScale: 1, + initialScale: 1, + maximumScale: 1, + userScalable: false, + width: "device-width", + viewportFit: "cover", +}; + export default function RootLayout({ children }: { children: React.ReactNode }) { const isSessionRecorderEnabled = parseInt(process.env.NEXT_PUBLIC_ENABLE_SESSION_RECORDER || "0"); @@ -51,10 +60,6 @@ export default function RootLayout({ children }: { children: React.ReactNode }) - {/* preloading */}