mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-05-20 21:07:30 +08:00
fix: ios viewport fit
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import type { Metadata } from 'next';
|
import type { Metadata, Viewport } from 'next';
|
||||||
import { Inter } from 'next/font/google';
|
import { Inter } from 'next/font/google';
|
||||||
|
|
||||||
import './globals.css';
|
import './globals.css';
|
||||||
@@ -14,6 +14,14 @@ export const metadata: Metadata = {
|
|||||||
manifest: '/manifest.json',
|
manifest: '/manifest.json',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const viewport: Viewport = {
|
||||||
|
width: 'device-width',
|
||||||
|
initialScale: 1,
|
||||||
|
maximumScale: 1,
|
||||||
|
userScalable: false,
|
||||||
|
viewportFit: 'cover',
|
||||||
|
};
|
||||||
|
|
||||||
export default function RootLayout({
|
export default function RootLayout({
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
@@ -21,7 +29,6 @@ export default function RootLayout({
|
|||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<html lang='zh-CN' suppressHydrationWarning>
|
<html lang='zh-CN' suppressHydrationWarning>
|
||||||
<head />
|
|
||||||
<body
|
<body
|
||||||
className={`${inter.className} min-h-screen bg-white text-gray-900 dark:bg-black dark:text-gray-200`}
|
className={`${inter.className} min-h-screen bg-white text-gray-900 dark:bg-black dark:text-gray-200`}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user