fix(ui): завершить адаптивность и приёмку OSPF
This commit is contained in:
1 parent
259c5c3014
commit
79a8d95e7d
16 files changed
+198
-121
No files matched your search
@@ -17,6 +17,7 @@ import {
|
||||
} from "@/components/data-grids/shared/data-grid-layout"
|
||||
import { DataGridSortHeader } from "@/components/data-grids/shared/data-grid-sort-header"
|
||||
import { EmptyState } from "@/components/empty-state"
|
||||
import { Button } from "@/components/ui/button"
|
||||
import { NetworkIcon } from "lucide-react"
|
||||
|
||||
export interface OspfNeighborRow {
|
||||
@@ -69,7 +70,7 @@ function OspfNeighborsDataGrid({
|
||||
<DataGridSortHeader column={column} title="Роутер" className="ml-1" />
|
||||
),
|
||||
cell: ({ row }) => (
|
||||
<span className="font-mono whitespace-nowrap">{row.original.localLabel}</span>
|
||||
onSelect ? <Button type="button" variant="ghost" size="sm" aria-label={`Открыть узел ${row.original.localLabel}`} aria-expanded={selectedRouterId === row.original.localRouter} onClick={event => { event.stopPropagation(); onSelect(selectedRouterId === row.original.localRouter ? null : row.original.localRouter) }}>{row.original.localLabel}</Button> : <span className="font-mono whitespace-nowrap">{row.original.localLabel}</span>
|
||||
),
|
||||
meta: {
|
||||
headerTitle: "Роутер",
|
||||
@@ -188,7 +189,7 @@ function OspfNeighborsDataGrid({
|
||||
},
|
||||
},
|
||||
],
|
||||
[],
|
||||
[onSelect, selectedRouterId],
|
||||
)
|
||||
|
||||
const rowSelection = useMemo(() => {
|
||||
|
||||
Reference in new issue
Block a user