diff --git a/frontend/src/components/common/Resource/ResourceTable.tsx b/frontend/src/components/common/Resource/ResourceTable.tsx index 527488f477..59f3e85bbb 100644 --- a/frontend/src/components/common/Resource/ResourceTable.tsx +++ b/frontend/src/components/common/Resource/ResourceTable.tsx @@ -363,7 +363,7 @@ function ResourceTableContent(props: ResourceTablePr return { id: 'namespace', header: t('glossary|Namespace'), - accessorFn: (item: RowItem) => item.getNamespace(), + accessorFn: (item: RowItem) => item.getNamespace() ?? '', filterVariant: 'multi-select', Cell: ({ row }: { row: MRT_Row }) => row.original?.getNamespace() ? ( diff --git a/frontend/src/components/common/Resource/__snapshots__/ResourceListView.OneHiddenColumn.stories.storyshot b/frontend/src/components/common/Resource/__snapshots__/ResourceListView.OneHiddenColumn.stories.storyshot index 44a8092976..63fc85ffb3 100644 --- a/frontend/src/components/common/Resource/__snapshots__/ResourceListView.OneHiddenColumn.stories.storyshot +++ b/frontend/src/components/common/Resource/__snapshots__/ResourceListView.OneHiddenColumn.stories.storyshot @@ -151,7 +151,7 @@ >({ preGridTemplateColumns = `${preGridTemplateColumns} 0.05fr`; } if (tableProps.enableRowSelection) { - preGridTemplateColumns = `0.05fr ${preGridTemplateColumns}`; + preGridTemplateColumns = `44px ${preGridTemplateColumns}`; } return preGridTemplateColumns; @@ -315,6 +315,14 @@ export default function Table>({ paddingTop: '0.5rem', }, }, + muiSelectCheckboxProps: { + size: 'small', + sx: { padding: 0 }, + }, + muiSelectAllCheckboxProps: { + size: 'small', + sx: { padding: 0 }, + }, }); const rows = useMRT_Rows(table); @@ -404,9 +412,7 @@ const MemoHeadCell = memo( a.sorting === b.sorting && a.isFiltered === b.isFiltered && a.showColumnFilters === b.showColumnFilters && - a.header.column.id === 'mrt-row-select' - ? a.selected === b.selected - : true + (a.header.column.id === 'mrt-row-select' ? a.selected === b.selected : true) ); const Row = memo( diff --git a/frontend/src/components/configmap/__snapshots__/List.Items.stories.storyshot b/frontend/src/components/configmap/__snapshots__/List.Items.stories.storyshot index f23ffb64bb..463fc479cb 100644 --- a/frontend/src/components/configmap/__snapshots__/List.Items.stories.storyshot +++ b/frontend/src/components/configmap/__snapshots__/List.Items.stories.storyshot @@ -252,7 +252,7 @@
item.metadata.namespace, + getValue: item => item.metadata.name, render: item => (