navbar: rebuild mock header from the Next implementation (source of truth)

- markup: lang + theme moved into .mu-topbar-tools (theme first, then lang),
  same order as web-at-transit: brand, nav, menu, tools, CTA
- CSS: replaced mock's .mu-lang-*/.mu-theme-* buttons with the Next rules
  (.mu-pop / .mu-pop-btn / .mu-pop-btn-lang / .mu-pop-panel / .mu-pop-item,
  40px tall, radius 8px, surface bg, 44px on coarse pointers)
- lang button keeps short label + 12px chevron; menu items use
  .mu-pop-item-th/.mu-pop-item-en and data-active for the selected row
- nav 0.95rem (was .92rem), header border -> var(--c-border)
- theme.js was never included in the shell (regex missed the versioned src) —
  added after i18n.js + precached with theme.css; that was why the theme menu
  did not open in the previous build
- VERSION 2026.09.27.120
This commit is contained in:
Bkk1234 committed 2026-11-04 01:37:50 +07:00
1 parent 5800a61da3
commit eabcff197c
7 files changed
+134 -102

No files matched your search

+3 -1
View File
@@ -13,7 +13,7 @@
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
============================================================ */
const VERSION = "2026.09.27.116"; // ← bump ทุกครั้งที่แก้ SW เอง
const VERSION = "2026.09.27.120"; // ← bump ทุกครั้งที่แก้ SW เอง
const CACHE = `at-transit-${VERSION}`;
const PRECACHE = [
@@ -32,6 +32,8 @@ const PRECACHE = [
"./i18n.js",
"./popular.js",
"./analytics.js",
"./theme.js",
"./theme.css",
"./router.js",
"./motion.js",
"./partials/home.html",