Make PWA install hint dismiss reliable across reloads.

Use delegated clicks, explicit hide state, and init before service worker registration.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-20 11:34:46 +02:00
parent ae589eed92
commit 6ba4cf447f
4 changed files with 70 additions and 17 deletions
+22 -2
View File
@@ -856,8 +856,9 @@ body.inv-chart-modal-open {
}
/* PWA install hint */
.pwa-hint[hidden] {
display: none;
.pwa-hint[hidden],
.pwa-hint.is-dismissed {
display: none !important;
}
.pwa-hint {
@@ -898,6 +899,25 @@ body.inv-chart-modal-open {
flex-shrink: 0;
}
.pwa-hint-dismiss {
background: none;
border: none;
color: var(--text-muted);
font-size: 1.25rem;
line-height: 1;
cursor: pointer;
min-width: 32px;
min-height: 32px;
padding: 4px;
border-radius: 6px;
flex-shrink: 0;
}
.pwa-hint-dismiss:hover {
color: var(--text);
background: var(--bg-hover);
}
.landing-card .pwa-hint {
margin-top: 8px;
margin-bottom: 0;