mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-07-26 23:51:14 +02:00
fix(globals.css, models-selection-panel): update brand color and improve button styles for active state
This commit is contained in:
parent
fe1bee14ed
commit
f6836cf11f
2 changed files with 10 additions and 4 deletions
|
|
@ -54,7 +54,7 @@
|
|||
--sidebar-ring: oklch(0.708 0 0);
|
||||
--main-panel: var(--panel);
|
||||
--syntax-bg: #f5f5f5;
|
||||
--brand: oklch(0.623 0.214 259.815);
|
||||
--brand: oklch(0.546 0.245 262.881);
|
||||
--highlight: oklch(0.852 0.199 91.936);
|
||||
}
|
||||
|
||||
|
|
@ -103,7 +103,7 @@ html[data-surfsense-auth-type="LOCAL"] .runtime-auth-google {
|
|||
--sidebar-ring: oklch(0.439 0 0);
|
||||
--main-panel: var(--panel);
|
||||
--syntax-bg: #1e1e1e;
|
||||
--brand: oklch(0.707 0.165 254.624);
|
||||
--brand: oklch(0.546 0.245 262.881);
|
||||
--highlight: oklch(0.852 0.199 91.936);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -99,11 +99,17 @@ export function ModelsSelectionPanel({
|
|||
type="button"
|
||||
variant="secondary"
|
||||
size="sm"
|
||||
className={`h-7 rounded-full px-3 text-xs ${isActive ? "" : "opacity-80"}`}
|
||||
className={`h-7 rounded-full px-3 text-xs ${
|
||||
isActive
|
||||
? "bg-brand text-white hover:bg-brand/90"
|
||||
: "opacity-80"
|
||||
}`}
|
||||
onClick={() => setModelFilter(isActive ? null : filter.key)}
|
||||
>
|
||||
{filter.label}
|
||||
<span className="ml-1 text-muted-foreground">{count}</span>
|
||||
<span className={`ml-1 ${isActive ? "text-white/80" : "text-muted-foreground"}`}>
|
||||
{count}
|
||||
</span>
|
||||
</Button>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue