diff --git a/packages/k8s-ui/src/components/audit/AuditFindingsTable.tsx b/packages/k8s-ui/src/components/audit/AuditFindingsTable.tsx index 6ca8e7d448..73bfc0b814 100644 --- a/packages/k8s-ui/src/components/audit/AuditFindingsTable.tsx +++ b/packages/k8s-ui/src/components/audit/AuditFindingsTable.tsx @@ -515,7 +515,7 @@ function FlatFindingRow({ finding, onResourceClick, showCluster, onClusterClick onClusterClick ? ( diff --git a/packages/k8s-ui/src/components/checks/ChecksView.tsx b/packages/k8s-ui/src/components/checks/ChecksView.tsx index f35b95d97e..f529582668 100644 --- a/packages/k8s-ui/src/components/checks/ChecksView.tsx +++ b/packages/k8s-ui/src/components/checks/ChecksView.tsx @@ -285,7 +285,7 @@ export function ChecksView({ checks, catalog, anyData, evaluated, missingInputs placeholder="Search checks…" value={search} onChange={(e) => filters.setString('q', e.target.value)} - className="w-64 rounded-lg border border-theme-border-light bg-theme-base py-1.5 pl-9 pr-8 text-sm text-theme-text-primary placeholder-theme-text-disabled focus:outline-none focus:ring-2 focus:ring-[var(--color-radar-accent)]" + className="w-64 rounded-lg border border-theme-border-light bg-theme-base py-1.5 pl-9 pr-8 text-sm text-theme-text-primary placeholder-theme-text-disabled focus:outline-none focus:ring-2 focus:ring-[var(--color-radar-accent,var(--accent))]" /> {search && ( @@ -849,7 +849,7 @@ function ResourceList({ @@ -875,7 +875,7 @@ function FindingLine({ <> {r.kind} - + {r.namespace ? `${r.namespace} / ` : ''} {r.name} @@ -1010,7 +1010,7 @@ function ClusterFilter({ onClick={() => onToggle(o.id)} className="flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm text-theme-text-secondary transition-colors hover:bg-theme-hover hover:text-theme-text-primary" > - + {on && ✓} diff --git a/packages/k8s-ui/src/components/issues/IssuesView.tsx b/packages/k8s-ui/src/components/issues/IssuesView.tsx index 51a4e1f9f8..780c7f56b6 100644 --- a/packages/k8s-ui/src/components/issues/IssuesView.tsx +++ b/packages/k8s-ui/src/components/issues/IssuesView.tsx @@ -283,7 +283,7 @@ export function IssueRow({ onToggle(); } }} - className={`group @container/issue flex cursor-pointer items-center gap-3 border-l-[3px] py-3 pl-3 pr-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-radar-accent)]/40 ${open ? ISSUE_SEVERITY_HEADER_BAND_CLASS[severity] : ISSUE_SEVERITY_RAIL_CLASS[severity]}`} + className={`group @container/issue flex cursor-pointer items-center gap-3 border-l-[3px] py-3 pl-3 pr-4 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-radar-accent,var(--accent))]/40 ${open ? ISSUE_SEVERITY_HEADER_BAND_CLASS[severity] : ISSUE_SEVERITY_RAIL_CLASS[severity]}`} > @@ -719,7 +719,7 @@ function ResourceLine({ ) : ( {r.kind} )} - + {r.namespace ? `${r.namespace} / ` : ''} {r.name} diff --git a/packages/k8s-ui/src/components/ui/FilterPill.tsx b/packages/k8s-ui/src/components/ui/FilterPill.tsx index 7dd7691c24..5b8d5167d1 100644 --- a/packages/k8s-ui/src/components/ui/FilterPill.tsx +++ b/packages/k8s-ui/src/components/ui/FilterPill.tsx @@ -52,7 +52,7 @@ const TONE_ACTIVE: Record = { high: 'bg-orange-500/15 border-orange-500/40 text-orange-800 dark:text-orange-300', medium: 'bg-yellow-500/15 border-yellow-500/40 text-yellow-800 dark:text-yellow-300', ok: 'bg-emerald-500/15 border-emerald-500/40 text-emerald-700 dark:text-emerald-300', - brand: 'bg-[var(--color-brand-50)] border-[var(--color-radar-accent)] text-theme-text-primary dark:bg-[var(--color-brand-950)]', + brand: 'bg-[var(--color-brand-50,var(--accent-muted))] border-[var(--color-radar-accent,var(--accent))] text-theme-text-primary dark:bg-[var(--color-brand-950,var(--accent-muted))]', } const INACTIVE = 'border-theme-border-light text-theme-text-secondary hover:border-theme-border hover:text-theme-text-primary hover:bg-theme-hover/50' diff --git a/packages/k8s-ui/src/components/ui/ResourceBar.tsx b/packages/k8s-ui/src/components/ui/ResourceBar.tsx index d4234e65a5..ee1874e2d7 100644 --- a/packages/k8s-ui/src/components/ui/ResourceBar.tsx +++ b/packages/k8s-ui/src/components/ui/ResourceBar.tsx @@ -60,7 +60,7 @@ export function ResourceBar({ label, }: ResourceBarProps) { const track = ( -
+
+
{label} {track} @@ -86,7 +86,7 @@ export function ResourceBar({
) : ( -
+
{used} / {total} @@ -99,11 +99,17 @@ export function ResourceBar({
) + // Tooltip's wrapper is inline-flex: it sizes the row to its content (hence + // w-full on the row, or the track collapses to the labels' width) and it is + // inline-level, so the block div keeps sibling bars stacked instead of + // sharing one line. if (tooltip) { return ( - - {bar} - +
+ + {bar} + +
) } diff --git a/web/src/components/home/HomeView.tsx b/web/src/components/home/HomeView.tsx index 2d63f08e12..7e1309e60a 100644 --- a/web/src/components/home/HomeView.tsx +++ b/web/src/components/home/HomeView.tsx @@ -351,7 +351,7 @@ function ProblemsPanel({