From 5faa18d343ee82fd9f394163126907edc60f1762 Mon Sep 17 00:00:00 2001 From: TerryM Date: Sun, 31 May 2026 03:36:54 +0800 Subject: [PATCH] fix: make desktop search a button and keep nav down to 1000px - Replace the desktop header search field with a search icon button that opens the search panel on click (matching mobile), so there is one search input (in the panel) instead of a redundant header field, and the trigger no longer vanishes when the panel opens. - Lower the nav collapse breakpoint from 1100px to 1000px so the full menu stays visible on smaller desktop widths before falling back to the hamburger menu. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/layouts/PublicLayout.tsx | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/src/layouts/PublicLayout.tsx b/src/layouts/PublicLayout.tsx index 82ce933..dc2834a 100644 --- a/src/layouts/PublicLayout.tsx +++ b/src/layouts/PublicLayout.tsx @@ -537,7 +537,7 @@ export function PublicLayout() {
{/* Single row (md+): logo | scrollable nav (左對齊,可橫向滑動) | 搜尋 + 語言 */} -
+
{/* Logo → home; page-name text → scroll to top of the current page. */} -
-
+
+
{ setDesktopSearchOpen(false); setOpen((v) => !v); @@ -659,7 +651,7 @@ export function PublicLayout() { {open ? (