Fix: Android pwa app without logo (#280)
* refactor(assets): rename logo svg files to include dimensions * feat(assets): add 192x192 png versions of logos for PWA support * fix(pwa): update static webmanifest with new logo paths and sizes * fix(pwa): update dynamic manifest generation to use new 512px and 192px icons
This commit is contained in:
+15
-9
@@ -33,15 +33,21 @@
|
|||||||
"background_color": "#151313",
|
"background_color": "#151313",
|
||||||
"theme_color": "#edb449",
|
"theme_color": "#edb449",
|
||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": baseUrl + "/logo-dark.svg",
|
"src": baseUrl + "/logo-dark-512x512.svg",
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/svg+xml",
|
"type": "image/svg+xml",
|
||||||
"purpose": "any maskable"
|
"purpose": "any"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": baseUrl + "/apple-touch-icon-180x180.png",
|
"src": baseUrl + "/logo-dark-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "any"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": baseUrl + "/apple-touch-icon-180x180.png",
|
||||||
"sizes": "180x180",
|
"sizes": "180x180",
|
||||||
"type": "image/png",
|
"type": "image/png",
|
||||||
"purpose": "any"
|
"purpose": "any"
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
@@ -9,10 +9,16 @@
|
|||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/logo-dark.svg",
|
"src": "/logo-dark-512x512.svg",
|
||||||
"sizes": "512x512",
|
"sizes": "512x512",
|
||||||
"type": "image/svg+xml",
|
"type": "image/svg+xml",
|
||||||
"purpose": "any maskable"
|
"purpose": "any"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "/logo-dark-192x192.png",
|
||||||
|
"sizes": "192x192",
|
||||||
|
"type": "image/png",
|
||||||
|
"purpose": "any"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/apple-touch-icon-180x180.png",
|
"src": "/apple-touch-icon-180x180.png",
|
||||||
|
|||||||
Reference in New Issue
Block a user