From 286df4b3e300307ac8e6821bd3f3544ba279bb90 Mon Sep 17 00:00:00 2001 From: OG T Date: Wed, 8 Apr 2026 22:33:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20Sidebar=20section=20label=20?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20=E2=80=94=20main=20=E4=B8=8D=E9=A1=AF?= =?UTF-8?q?=E7=A4=BA=E6=A8=99=E9=A1=8C=EF=BC=8Clegacy=20=E7=94=A8=E5=88=86?= =?UTF-8?q?=E9=9A=94=E7=B7=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/components/layout/sidebar.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/web/src/components/layout/sidebar.tsx b/apps/web/src/components/layout/sidebar.tsx index 7a53adcd..29020360 100644 --- a/apps/web/src/components/layout/sidebar.tsx +++ b/apps/web/src/components/layout/sidebar.tsx @@ -159,17 +159,19 @@ export function Sidebar({ {/* 4 分區菜單 */} {NAV_SECTIONS.map(section => (
- {/* 分區標題(collapsed 時隱藏)*/} - {!collapsed && ( + {/* 分區標題 — main 不顯示,legacy 顯示分隔線+標題 */} + {!collapsed && section.sectionLabel && (
- {tSection(section.sectionKey)} + {section.sectionLabel}
)} {section.items.map(item => {