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:
+22
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user