style: update styling for section buttons and background in AIAgentConfigWorkbench

This commit is contained in:
mlogclub
2026-06-26 17:29:06 +08:00
parent aa346ac717
commit 84094f4ad8
@@ -559,24 +559,24 @@ export function AIAgentConfigWorkbench({
AI
</div>
) : null}
<div className="shrink-0 border-b bg-muted/20 px-4 py-2">
<div className="shrink-0 border-b bg-muted/30 px-4 py-2">
<div className="flex min-w-0 items-center gap-1 overflow-x-auto overflow-y-hidden">
{sections.map((section) => (
<button
key={section.key}
type="button"
onClick={() => setActiveSection(section.key)}
className={`group flex h-8 shrink-0 items-center gap-2 rounded-md border px-2.5 text-sm transition-colors ${
className={`group flex h-8 shrink-0 items-center gap-2 rounded-md border px-2.5 text-sm shadow-xs transition-all ${
activeSection === section.key
? "border-primary bg-primary font-medium text-primary-foreground shadow-xs"
: "border-transparent bg-transparent text-muted-foreground hover:border-border/70 hover:bg-background/80 hover:text-foreground"
: "border-border/70 bg-background text-foreground hover:border-primary/40 hover:bg-primary/5 hover:text-primary hover:shadow-sm"
}`}
>
<span
className={`flex size-5 shrink-0 items-center justify-center rounded-sm transition-colors ${
activeSection === section.key
? "bg-primary-foreground/15 text-primary-foreground"
: "text-muted-foreground group-hover:text-foreground"
: "bg-muted text-muted-foreground group-hover:bg-primary/10 group-hover:text-primary"
}`}
>
{section.icon}