pwa: remove floating install-app button

- drop beforeinstallprompt handler + .mu-install-btn markup from ui/pwa.js
- remove .mu-install-btn styles from _shared.css
- drop unused pwa.install i18n key (th/en)
- SW registration/auto-update untouched; VERSION 2026.09.27.107
This commit is contained in:
Bkk1234 committed 2026-11-03 00:20:30 +07:00
1 parent 4acb43ff45
commit 449afb923a
6 files changed
+8 -73

No files matched your search

-25
View File
@@ -494,31 +494,6 @@ body:has(.mu-site-footer) .mu-footer { display: none; }
outline-offset: 2px;
}
/* ---------- ปุ่มติดตั้งแอป (PWA — inject จาก pwa.js) ---------- */
.mu-install-btn {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 100;
display: none; /* โผล่เมื่อ beforeinstallprompt เท่านั้น */
align-items: center;
gap: 8px;
min-height: 48px;
padding: 12px 20px;
border: none;
border-radius: 999px;
cursor: pointer;
font-family: inherit;
font-size: .95rem;
font-weight: 700;
color: #fff;
background: linear-gradient(135deg, #a855f7, #7c3aed);
box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
transition: transform .15s ease;
}
.mu-install-btn:active { transform: translateY(1px); }
.mu-install-btn svg { width: 20px; height: 20px; }
/* =========================================================
Motion — อนิเมชันร่วมทุกหน้า (ไฟล์ JS: ui/motion.js)
---------------------------------------------------------