feat: add iOS home-screen icon and Stalwart title without service worker

This commit is contained in:
Steven RYDELL
2026-07-30 18:56:29 +02:00
parent 3189be2de0
commit d1284de415
2 changed files with 8 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ All notable changes to this project will be documented in this file. This projec
- Web Applications list shows an Enabled column again.
- Appearance Corners preview: only the Rounded choice forces rounded radius on its card and sample; Square stays sharp even when the global theme is square.
- Removed the experimental PWA/service worker: it precached `index.html` with `<base href="/">`, which broke Stalwart's mount-path rewrite (`/admin`, `/account`) and produced a blank UI. Aligns with upstream webui, which does not ship a service worker.
- iOS home-screen Web App support without a service worker: `apple-touch-icon` plus `apple-mobile-web-app-title` set to "Stalwart".
### Known limitations (confirmed backend-side, not fixable from this fork)
- Level/Event filters on Log Entries are client-side only (see Added above) because the backend's JMAP query engine rejects `level`/`event` as filter conditions ([webui#15](https://github.com/stalwartlabs/webui/issues/15)).
+7
View File
@@ -5,7 +5,14 @@
<meta charset="UTF-8" />
<base href="/" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!-- iOS "Add to Home Screen": icon + short name, no service worker required -->
<link rel="apple-touch-icon" href="pwa/apple-touch-icon.png" />
<meta name="apple-mobile-web-app-title" content="Stalwart" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#09090b" media="(prefers-color-scheme: dark)" />
<title>Stalwart WebUI</title>
</head>