From 70cc81b923890d39f9982f35fb80476b65dab283 Mon Sep 17 00:00:00 2001 From: Bkk1234 Date: Fri, 23 Oct 2026 23:49:51 +0700 Subject: [PATCH] Put the hamburger at the far right of the mobile topbar Previous order was (menu)(theme)(language). Swapped so the row reads logo ... (theme)(language)(menu) and the hamburger sits flush against the right padding edge, which is where the thumb menu is expected. Measured 360/375/414px: brand starts at 14px, menu ends exactly on the right padding edge, 8px gaps, no horizontal overflow. --- DESIGN.md | 2 +- frontend/src/styles/responsive.css | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 5ac5acc..9ec777d 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -275,7 +275,7 @@ subset thai/latin/latin-ext · ~218 KB) + ไฟล์ `.woff2` 18 ไฟล์ | ธีม (`.mu-pop-btn`) | ไอคอนของโหมดที่ใช้อยู่ (สว่าง/มืด/ตามเวลา) | เปิดเมนู 3 ตัวเลือก `role="menuitemradio"` | | ภาษา (`.mu-pop-btn-lang`) | รหัสภาษาที่ใช้อยู่ (`ไทย` / `EN`) + chevron | เปิดเมนู 2 ภาษา | -- **มือถือ (<640px)** — โลโก้ชิดซ้าย · `(3 ขีด)(ธีม)(ภาษา)` ชิดขวา: `flex-wrap: nowrap` + `margin-inline-start: auto` ที่ `.mu-menu` และ `order: 1/2` ให้เครื่องมือตามหลังเมนู +- **มือถือ (<640px)** — โลโก้ชิดซ้าย · `(ธีม)(ภาษา)(3 ขีด)` ชิดขวา โดย **3 ขีดอยู่ขวาสุด**: `flex-wrap: nowrap` · `margin-inline-start: auto` ที่ `.mu-topbar-tools` · `order: 2` (tools) / `3` (menu) - **≥640px** — เมนู 3 ขีดซ่อน แสดง `.mu-nav` แทน · `≥1024px` เพิ่มปุ่ม CTA - ปุ่มกลมเหลี่ยม `height 40px` · `radius 8px` · ขอบ `--c-border` · ตัวอักษร `--c-brand-ink` - จอสัมผัส → `44px` diff --git a/frontend/src/styles/responsive.css b/frontend/src/styles/responsive.css index 1283de1..a1f6ef2 100644 --- a/frontend/src/styles/responsive.css +++ b/frontend/src/styles/responsive.css @@ -67,8 +67,9 @@ main.mu-container { padding-top: 24px; padding-bottom: 24px; } .mu-action-btn { display: none; } /* กันล้นบนจอเล็ก — โผล่กลับ ≥1024px */ /* hamburger menu (ขวาสุด) */ -.mu-menu { display: block; position: relative; order: 1; margin-left: 0; margin-inline-start: auto; flex-shrink: 0; } - .mu-topbar-tools { order: 2; } +.mu-menu { display: block; position: relative; order: 3; margin-left: 0; flex-shrink: 0; } + /* ตัวดันชิดขวาอยู่ที่กลุ่มเครื่องมือ (ตัวแรกของกลุ่มขวา) แล้วให้ 3 ขีดตามท้าย → ขีดอยู่มุมขวาสุด */ + .mu-topbar-tools { order: 2; margin-inline-start: auto; } .mu-menu-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;