Skip to content

Commit c1ccd86

Browse files
committed
Fixed viewport issues
1 parent 5efc991 commit c1ccd86

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

app/layout.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import "@/styles/globals.css";
22
import { Metadata } from "next";
3+
import type { Viewport } from "next";
34

45
export const metadata: Metadata = {
56
title: "Nines Score",
67
description: "Keep track of your nines score",
7-
viewport: "width=device-width, initial-scale=1, maximum-scale=1",
88
icons: {
99
apple: [{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" }],
1010
icon: [
@@ -16,12 +16,18 @@ export const metadata: Metadata = {
1616
{ rel: "mask-icon", url: "/safari-pinned-tab.svg", color: "#5bbad5" },
1717
],
1818
},
19-
themeColor: "#ffffff",
2019
other: {
2120
"msapplication-TileColor": "#da532c",
2221
},
2322
};
2423

24+
export const viewport: Viewport = {
25+
themeColor: "black",
26+
initialScale: 1,
27+
maximumScale: 1,
28+
width: "device-width",
29+
};
30+
2531
export default function RootLayout({ children }: { children: React.ReactNode }) {
2632
return (
2733
<html lang="en">

public/sw.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)