fix(web): 工作区布局 - 侧栏快速搜索占位文字与图标颜色统一为中性灰

- 占位文字由 text-foreground/30 改为 /45,hover 由 /55 改为 /70,与搜索图标(/45 -> /70)一致;浅色主题下为中性灰而非偏白
This commit is contained in:
sikongyue
2026-08-20 00:41:54 +08:00
parent 17a8d8ae03
commit 4cef763a11

View File

@@ -308,11 +308,11 @@ 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/30 transition-colors hover:bg-foreground/[.07] hover:text-foreground/55"
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"
>
<Search className="size-4 shrink-0 text-foreground/45 group-hover:text-foreground/70" strokeWidth={1.6} />
<span className="flex-1 truncate">快速搜索</span>
<kbd className="flex h-5 shrink-0 items-center justify-center rounded-sm border border-[var(--workspace-border)] bg-background/60 px-1.5 font-mono text-[var(--fs-tiny)] font-medium text-foreground/45">⌘K</kbd>
<span className="flex-1 truncate">快速搜索</span>
</button>
</div>