Declutter navbar: one button per tool (theme, language)

The topbar carried five small buttons in a row (3 theme + 2 language).
Replaced with two single buttons that open their own popover menu:

- ThemeSwitch: single icon button showing the active mode, menu with
  light/dark/auto as menuitemradio
- LangSwitch: new component showing the active code (ไทย / EN), menu
  keeps the existing [data-i18n-switch] mechanism from i18n.ts
- .mu-topbar-tools wrapper, 8px gap (WCAG 2.5.8), 40px buttons / 44px on touch
- popovers close on select, outside click and Escape (focus returns to button)

Also fixed two bugs found on /stops:
- .mu-btn.outline had no CSS rule, so the browser painted a light grey
  background that ignored the dark theme
- deleted the unused StopSearch component which still carried the old
  number pad and its delete key, plus the now-unused stops.padDelete key

Verified at 375px: no horizontal overflow, buttons 40x40 and 59x40,
8px gap; menus open/close correctly in both themes.
This commit is contained in:
Bkk1234 committed 2026-10-23 23:37:44 +07:00
1 parent bf42076b52
commit cb4905a12d
11 files changed
+338 -283

No files matched your search

-1
View File
@@ -138,7 +138,6 @@
"stops.codeFull": "Stop code:",
"stops.placePh": "Ang Thong Hospital",
"stops.placeHint": "Type a place name such as a hospital or land office, then pick a match",
"stops.padDelete": "Del",
"stops.reset": "Clear",
"stops.section": "Section",
"stops.showing": "Showing {a} of {b} stops",
-1
View File
@@ -138,7 +138,6 @@
"stops.codeFull": "รหัสป้าย:",
"stops.placePh": "โรงพยาบาลอ่างทอง",
"stops.placeHint": "พิมพ์ชื่อสถานที่สำคัญ เช่น โรงพยาบาล สำนักงานที่ดิน แล้วเลือกรายการที่ตรงกัน",
"stops.padDelete": "ลบ",
"stops.reset": "ล้างค่า",
"stops.section": "ตอน",
"stops.showing": "แสดง {a} จาก {b} ป้าย",