fix: add apple-touch-icon.png for iOS Safari compatibility

This commit is contained in:
MarkLo 2025-12-14 02:30:55 +08:00
parent 155454f164
commit 8ca4072233
2 changed files with 5 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

View File

@ -20,7 +20,7 @@ export const metadata: Metadata = {
{ url: "/icon.png", sizes: "1024x1024", type: "image/png" },
],
apple: [
{ url: "/apple-icon.png", sizes: "180x180", type: "image/png" },
{ url: "/apple-touch-icon.png", sizes: "180x180", type: "image/png" },
],
shortcut: "/favicon.ico",
},
@ -50,7 +50,10 @@ export default function RootLayout({
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="apple-mobile-web-app-title" content="TradingAgentsX" />
<link rel="apple-touch-icon" href="/apple-icon.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon.png" />
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon.png" />
</head>
<body className={inter.className}>
<ThemeProvider>