fix(web): 工作区布局 - 修复侧栏快速搜索重复文本并统一占位符颜色

- 修复重复:搜索按钮的占位文本 span 在上次颜色统一编辑时被误插两份,现删去一份\n- 颜色:占位文字与搜索图标由 text-foreground/45(深色下为半透明白,观感偏白)改用语义 token text-muted-foreground(浅色深灰 / 深色中性灰 0.708,非纯白),深浅主题一致;hover 保持加深
This commit is contained in:
sikongyue
2026-08-20 00:44:29 +08:00
parent aaabedb2f4
commit 73e38280a5

View File

@@ -308,10 +308,9 @@ export function WorkspaceSidebarNav({ onNavigate, onOpenSearch }: { onNavigate:
<button
type="button"
onClick={onOpenSearch}
className="group flex h-9 w-full items-center gap-2 rounded-[var(--r-lg)] bg-foreground/5 px-3 text-left text-[var(--fs-caption)] text-foreground/45 transition-colors hover:bg-foreground/[.07] hover:text-foreground/70"
className="group flex h-9 w-full items-center gap-2 rounded-[var(--r-lg)] bg-foreground/5 px-3 text-left text-[var(--fs-caption)] text-muted-foreground transition-colors hover:bg-foreground/[.07] hover:text-foreground/70"
>
<Search className="size-4 shrink-0 text-foreground/45 group-hover:text-foreground/70" strokeWidth={1.6} />
<span className="flex-1 truncate">快速搜索</span>
<Search className="size-4 shrink-0 text-muted-foreground group-hover:text-foreground/70" strokeWidth={1.6} />
<span className="flex-1 truncate">快速搜索</span>
</button>
</div>