A self-hosted dashboard that puts all your feeds in one place
Go aggregatordashboarddockerfeed-readergohomelabhomepagemonitoringredditrssrss-readerself-hostedstartpageyoutube
Add mobile web app support
Carlos Medinaecbad7ce6ca7
diff --git a/internal/assets/static/app-icon.png b/internal/assets/static/app-icon.pngnew file mode 100644index 0000000..54fc413Binary files /dev/null and b/internal/assets/static/app-icon.png differdiff --git a/internal/assets/static/main.css b/internal/assets/static/main.cssindex b77a60f..36700b9 100644--- a/internal/assets/static/main.css+++ b/internal/assets/static/main.css@@ -1022,6 +1022,14 @@ body {}}+@media (display-mode: standalone) {+ @supports (-webkit-touch-callout: none) {+ .mobile-navigation {+ bottom: 15px;+ }+ }+}+.size-h1 { font-size: var(--font-size-h1); }.size-h2 { font-size: var(--font-size-h2); }.size-h3 { font-size: var(--font-size-h3); }diff --git a/internal/assets/static/manifest.json b/internal/assets/static/manifest.jsonnew file mode 100644index 0000000..8ce7aa8--- /dev/null+++ b/internal/assets/static/manifest.json@@ -0,0 +1,13 @@+{+ "name": "Glance",+ "display": "standalone",+ "scope": "/",+ "start_url": "/",+ "icons": [+ {+ "src": "/static/app-icon.png",+ "type": "image/png",+ "sizes": "512x512"+ }+ ]+}\ No newline at end of filediff --git a/internal/assets/templates/document.html b/internal/assets/templates/document.htmlindex 04984f8..8929579 100644--- a/internal/assets/templates/document.html+++ b/internal/assets/templates/document.html@@ -6,6 +6,14 @@<meta charset="UTF-8"><meta name="color-scheme" content="dark"><meta name="viewport" content="width=device-width, initial-scale=1.0">+ <meta name="apple-mobile-web-app-capable" content="yes">+ <meta name="mobile-web-app-capable" content="yes">+ <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">+ <meta name="apple-mobile-web-app-title" content="Glance">+ <meta name="theme-color" content="{{ .App.Config.Theme.BackgroundColor }}">+ <link rel="apple-touch-icon" sizes="512x512" href="/static/app-icon.png">+ <link rel="icon" type="image/png" sizes="512x512" href="/static/app-icon.png">+ <link rel="manifest" href="/static/manifest.json"><link rel="icon" type="image/png" href="/static/favicon.png" /><link rel="stylesheet" href="/static/main.css?v={{ .App.Config.Server.StartedAt.Unix }}"><script async src="/static/main.js?v={{ .App.Config.Server.StartedAt.Unix }}"></script>