From 1adc2a6cd06d3a3489d1af07e48213eb72a27cef Mon Sep 17 00:00:00 2001 From: Bkk1234 Date: Wed, 4 Nov 2026 01:43:18 +0700 Subject: [PATCH] navbar: theme icons + CTA order to match Next exactly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - theme.js: icon SVGs now carry width/height 18 (sun / moon / monitor) so the icon renders inside the 40px button and switches with the mode - .mu-topbar-tools { order: 2 } — the CTA now sits right after the credits link and the theme/lang tools move to the far right, same visual order as web-at-transit (CTA 1144-1273 vs tools 1291-1405 at 1600px) - icon sizing scoped (#theme-icon svg) so the language chevron stays 12px; lang button back to 59px, tools 107px == Next - VERSION 2026.09.27.123 --- ui/_shared.css | 5 ++++- ui/index.html | 46 +++++++++++++++++++++++----------------------- ui/sw.js | 2 +- ui/theme.js | 6 +++--- ui/version.json | 2 +- 5 files changed, 32 insertions(+), 29 deletions(-) diff --git a/ui/_shared.css b/ui/_shared.css index 4870271..d83ce71 100644 --- a/ui/_shared.css +++ b/ui/_shared.css @@ -416,6 +416,7 @@ body:has(.mu-site-footer) .mu-footer { display: none; } align-items: center; gap: 8px; /* WCAG 2.5.8 — เว้นระหว่างเป้ากด ≥ 8px */ flex-shrink: 0; + order: 2; /* ปุ่มเครื่องมืออยู่หลัง CTA (CTA ติด "เครดิต" เหมือน next) */ } .mu-pop { position: relative; display: inline-flex; } @@ -450,7 +451,9 @@ body:has(.mu-site-footer) .mu-footer { display: none; } border-color: var(--c-brand-ink); background: var(--c-surface-2); } -.mu-pop-btn .ic { width: 18px; height: 18px; } +.mu-pop-btn .ic, +#theme-icon svg { width: 18px; height: 18px; flex: none; } +.mu-pop-btn-lang svg { flex: none; } /* เมนูที่กางออก */ .mu-pop-panel { diff --git a/ui/index.html b/ui/index.html index 6ec7df7..4ed88da 100644 --- a/ui/index.html +++ b/ui/index.html @@ -19,16 +19,16 @@ หน้าแรก | Atroute (mockup) - + - - - - - - + + + + + +