fix(ui): повысить контраст заполненных таблиц BGP и OSPF
This commit is contained in:
1 parent
d91cc77cda
commit
8b60ab040a
16 files changed
+1291
-101
No files matched your search
@@ -15,7 +15,7 @@ import { DataPageToolbar } from "@/components/data-page-toolbar"
|
||||
import { PageHeader } from "@/components/page-header"
|
||||
import { DataPageCard } from "@/components/data-page-card"
|
||||
import { OspfNeighborsDataGrid } from "@/components/data-grids/ospf-neighbors-data-grid"
|
||||
import { OspfRoutesDataGrid, routeTypeClass } from "@/components/data-grids/ospf-routes-data-grid"
|
||||
import { OspfRoutesDataGrid, OspfRouteTypeBadge } from "@/components/data-grids/ospf-routes-data-grid"
|
||||
import { OspfBfdDataGrid } from "@/components/data-grids/ospf-bfd-data-grid"
|
||||
import { Frame, FramePanel } from "@/components/reui/frame"
|
||||
import { KpiStatGrid } from "@/components/reui-kit/kpi-stat-grid"
|
||||
@@ -1026,9 +1026,7 @@ function RoutesTab({ routes, hasSearch }: { routes: OspfRoute[]; hasSearch: bool
|
||||
<div className="flex items-center gap-3 flex-wrap">
|
||||
<span className="text-sm font-medium">{routes.some(r => r.dataUnknown) ? "Последний снимок: " : ""}{routes.length} маршрутов</span>
|
||||
{typeCount.map(([type, count]) => (
|
||||
<span key={type} className={cn("inline-flex items-center rounded border px-2 py-0.5 text-[11px] font-medium", routeTypeClass(type as OspfRoute["type"]))}>
|
||||
{type === "Unknown" ? "Тип неизвестен" : type}: {count}
|
||||
</span>
|
||||
<OspfRouteTypeBadge key={type} type={type as OspfRoute["type"]} count={count} />
|
||||
))}
|
||||
</div>
|
||||
<DataPageCard>
|
||||
@@ -1043,7 +1041,7 @@ function RoutesTab({ routes, hasSearch }: { routes: OspfRoute[]; hasSearch: bool
|
||||
{ type: "O E2", desc: "External Type 2" },
|
||||
] as const).map(({ type, desc }) => (
|
||||
<span key={type} className="flex items-center gap-1.5 text-xs text-muted-foreground">
|
||||
<span className={cn("inline-flex items-center rounded border px-1.5 py-0.5 text-[10px] font-medium", routeTypeClass(type))}>{type}</span>
|
||||
<OspfRouteTypeBadge type={type} />
|
||||
{desc}
|
||||
</span>
|
||||
))}
|
||||
|
||||
Reference in new issue
Block a user