From 449afb923a6284a38975dd8ee4776ec9c5fe10b4 Mon Sep 17 00:00:00 2001 From: Bkk1234 Date: Tue, 3 Nov 2026 00:20:30 +0700 Subject: [PATCH] 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 --- ui/_shared.css | 25 ------------------------- ui/index.html | 10 +++++----- ui/locales/en.json | 1 - ui/locales/th.json | 1 - ui/pwa.js | 42 ++---------------------------------------- ui/sw.js | 2 +- 6 files changed, 8 insertions(+), 73 deletions(-) diff --git a/ui/_shared.css b/ui/_shared.css index 169e9cd..a0895ca 100644 --- a/ui/_shared.css +++ b/ui/_shared.css @@ -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) --------------------------------------------------------- diff --git a/ui/index.html b/ui/index.html index f56a7d5..4c286b8 100644 --- a/ui/index.html +++ b/ui/index.html @@ -12,8 +12,8 @@ - - + +