From f97e367ddec84c448e6652517f1c921a6755ef87 Mon Sep 17 00:00:00 2001 From: TerryM Date: Sun, 7 Jun 2026 19:53:58 +0800 Subject: [PATCH] fix(header): expand public header full-width and stop nav text clipping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Drop max-w-[1280px] on the desktop header inner row so the header expands with wider viewports instead of staying capped. - Move the inline nav / burger toggle from min-[1000px] to xl (1280px) so the nav only appears when all six items have enough room. The old threshold relied on overflow-x-auto, which clipped the first/last characters ("ll assets", "Popula"). - Remove the now-unused .header-nav-scroll CSS along with the scroll fallback wiring on the nav element. Mid-width viewports (1000–1280px) now show the burger drawer instead of a horizontally-scrolled nav. main content stays at max-w-[1280px] on purpose. --- ...7-public-header-expand-and-nav-clip-fix.md | 40 +++++++++++++++++++ src/index.css | 8 ---- src/layouts/PublicLayout.tsx | 17 ++++---- 3 files changed, 50 insertions(+), 15 deletions(-) create mode 100644 .unipi/docs/fix/2026-06-07-public-header-expand-and-nav-clip-fix.md diff --git a/.unipi/docs/fix/2026-06-07-public-header-expand-and-nav-clip-fix.md b/.unipi/docs/fix/2026-06-07-public-header-expand-and-nav-clip-fix.md new file mode 100644 index 0000000..95e6056 --- /dev/null +++ b/.unipi/docs/fix/2026-06-07-public-header-expand-and-nav-clip-fix.md @@ -0,0 +1,40 @@ +--- +title: "公共 Header 宽屏可扩展 & 导航文字裁切修复 — Quick Fix" +type: quick-fix +date: 2026-06-07 +--- + +# 公共 Header 宽屏可扩展 & 导航文字裁切修复 — Quick Fix + +## Bug +1. 桌面 Header 内容固定在 `max-w-[1280px]`,更宽的视口下不能 expand,左右出现大面积空白。 +2. 在中等宽度(约 1000–1280px)`