fix: ios viewport fit

This commit is contained in:
shinya
2025-06-27 13:18:42 +08:00
parent 227ba8d6ff
commit 7e401c2e23

View File

@@ -1,4 +1,4 @@
import type { Metadata } from 'next';
import type { Metadata, Viewport } from 'next';
import { Inter } from 'next/font/google';
import './globals.css';
@@ -14,6 +14,14 @@ export const metadata: Metadata = {
manifest: '/manifest.json',
};
export const viewport: Viewport = {
width: 'device-width',
initialScale: 1,
maximumScale: 1,
userScalable: false,
viewportFit: 'cover',
};
export default function RootLayout({
children,
}: {
@@ -21,7 +29,6 @@ export default function RootLayout({
}) {
return (
<html lang='zh-CN' suppressHydrationWarning>
<head />
<body
className={`${inter.className} min-h-screen bg-white text-gray-900 dark:bg-black dark:text-gray-200`}
>