chore: Update layout.tsx with viewport configuration

This commit is contained in:
zaidmukaddam 2024-08-09 23:12:35 +05:30
parent 2783bf7d68
commit f745cb22d9

View File

@ -1,5 +1,5 @@
import "./globals.css"; import "./globals.css";
import { Metadata } from "next"; import { Metadata, Viewport } from "next";
import { Toaster } from "sonner"; import { Toaster } from "sonner";
import { Inter, Instrument_Serif } from 'next/font/google'; import { Inter, Instrument_Serif } from 'next/font/google';
import { Analytics } from "@vercel/analytics/react"; import { Analytics } from "@vercel/analytics/react";
@ -19,6 +19,14 @@ const inter = Inter({
subsets: ["latin"], subsets: ["latin"],
}) })
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
minimumScale: 1,
maximumScale: 1,
userScalable: false,
}
const instrumentSerif = Instrument_Serif({ const instrumentSerif = Instrument_Serif({
weight: "400", weight: "400",
subsets: ["latin"], subsets: ["latin"],