fix unfound filter values hiding containers chart (#1301)

This commit is contained in:
henrygd
2025-10-20 14:33:49 -04:00
parent 62f5f986bb
commit 1df08801a2

View File

@@ -135,8 +135,6 @@ export default function ContainersTable({ systemId }: { systemId?: string }) {
const rows = table.getRowModel().rows const rows = table.getRowModel().rows
const visibleColumns = table.getVisibleLeafColumns() const visibleColumns = table.getVisibleLeafColumns()
if (!rows.length) return null
return ( return (
<Card className="p-6 @container w-full"> <Card className="p-6 @container w-full">
<CardHeader className="p-0 mb-4"> <CardHeader className="p-0 mb-4">
@@ -196,7 +194,7 @@ const AllContainersTable = memo(
ref={scrollRef} ref={scrollRef}
> >
{/* add header height to table size */} {/* add header height to table size */}
<div style={{ height: `${virtualizer.getTotalSize() + 50}px`, paddingTop, paddingBottom }}> <div style={{ height: `${virtualizer.getTotalSize() + 48}px`, paddingTop, paddingBottom }}>
<table className="text-sm w-full h-full"> <table className="text-sm w-full h-full">
<ContainersTableHead table={table} /> <ContainersTableHead table={table} />
<TableBody> <TableBody>
@@ -423,6 +421,7 @@ const ContainerTableRow = memo(
{row.getVisibleCells().map((cell) => ( {row.getVisibleCells().map((cell) => (
<TableCell <TableCell
key={cell.id} key={cell.id}
className="py-0"
style={{ style={{
height: virtualRow.size, height: virtualRow.size,
}} }}