Skip to content

Commit 94ef73b

Browse files
author
Marvin Zhang
committed
fix: update layout.tsx to import Viewport type and restructure viewport definition
1 parent b45875d commit 94ef73b

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packages/ui/src/app/layout.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Metadata } from "next";
1+
import type { Metadata, Viewport } from "next";
22
import "./globals.css";
33
import { Navigation } from "@/components/navigation";
44
import { MainSidebar } from "@/components/main-sidebar";
@@ -21,11 +21,12 @@ export const metadata: Metadata = {
2121
description: "Browse and explore LeanSpec specifications in a rich, interactive format",
2222
type: "website",
2323
},
24-
viewport: {
25-
width: 'device-width',
26-
initialScale: 1,
27-
maximumScale: 5,
28-
},
24+
};
25+
26+
export const viewport: Viewport = {
27+
width: 'device-width',
28+
initialScale: 1,
29+
maximumScale: 5,
2930
};
3031

3132
export default async function RootLayout({

0 commit comments

Comments
 (0)