Skip to content

Commit

Permalink
fix: Set mobile viewport to have maximum scale of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Mar 2, 2024
1 parent 3324f44 commit aa29538
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Toaster } from "@/components/ui/toaster";
import Providers from "@/lib/providers";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import { getServerAuthSession } from "@/server/auth";
import type { Viewport } from "next";

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -14,6 +15,13 @@ export const metadata: Metadata = {
description: "Your AI powered second brain",
};

export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
maximumScale: 1,
userScalable: false,
};

export default async function RootLayout({
children,
}: Readonly<{
Expand Down

0 comments on commit aa29538

Please sign in to comment.