fix(web): Sidebar section label 修正 — main 不顯示標題,legacy 用分隔線
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

This commit is contained in:
OG T
2026-04-08 22:33:17 +08:00
parent 4aa7c179c1
commit 286df4b3e3

View File

@@ -159,17 +159,19 @@ export function Sidebar({
{/* 4 分區菜單 */}
{NAV_SECTIONS.map(section => (
<div key={section.sectionKey} style={{ marginBottom: 4 }}>
{/* 分區標題collapsed 時隱藏)*/}
{!collapsed && (
{/* 分區標題 — main 不顯示legacy 顯示分隔線+標題 */}
{!collapsed && section.sectionLabel && (
<div style={{
fontSize: 11,
fontSize: 10,
color: '#b0ad9f',
letterSpacing: '1.5px',
textTransform: 'uppercase' as const,
padding: '8px 12px 3px',
padding: '12px 12px 3px',
fontFamily: 'var(--font-body), monospace',
borderTop: '0.5px solid #e0ddd4',
marginTop: 4,
}}>
{tSection(section.sectionKey)}
{section.sectionLabel}
</div>
)}
{section.items.map(item => {