fix(canvas): 修复技能库分类选项卡选中态样式 - 与空间工作台强调色保持一致 (#65)
Co-authored-by: zhaoyue <zhaoyue@rongshantech.com>
This commit is contained in:
@@ -212,7 +212,7 @@ export default function SkillsPage() {
|
||||
{isPagedTab && categories.length ? (
|
||||
<div className="thin-scrollbar flex gap-1 overflow-x-auto border-b border-border/70 py-2" aria-label="技能分类">
|
||||
{["all", ...categories].map((value) => (
|
||||
<button key={value} type="button" className={`h-7 shrink-0 rounded px-2.5 text-xs transition-colors ${category === value ? "bg-foreground text-background" : "text-foreground/55 hover:bg-foreground/[.05] hover:text-foreground"}`} onClick={() => { setCategory(value); setPage(1); }}>
|
||||
<button key={value} type="button" className={`h-7 shrink-0 rounded px-2.5 text-xs transition-colors ${category === value ? "bg-[color:var(--workspace-accent-soft)] text-[color:var(--workspace-accent)]" : "text-foreground/55 hover:bg-foreground/[.05] hover:text-foreground"}`} onClick={() => { setCategory(value); setPage(1); }}>
|
||||
{value === "all" ? "全部分类" : value}
|
||||
</button>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user