fix: Hide select-all checkbox and add spacing on empty tables (#14009)

* fix: Hide select-all checkbox and add spacing on empty tables

* fix: Make empty table message block-level so margin applies
This commit is contained in:
Tom Moor authored and GitHub committed 2026-10-10 15:30:43 +00:00
1 parent 6634d23b60
commit 77bc6818c4
1 file changed
+10 -1
+10 -1
View File
@@ -442,7 +442,7 @@ function TableViewInner<TData extends RowData>({
bottomOffset={-rowHeight * 5}
/>
)}
{isEmpty && <Empty>{t("No results")}</Empty>}
{isEmpty && <NoResults>{t("No results")}</NoResults>}
</>
);
}
@@ -589,6 +589,10 @@ const SelectAllCheckbox = observer(function SelectAllCheckbox_({
}) {
const checked = count > 0 && selection.size === count;
if (count === 0) {
return null;
}
const handleClick = (event: React.MouseEvent) => {
event.stopPropagation();
if (selection.isActive) {
@@ -644,6 +648,11 @@ function Placeholder({
);
}
const NoResults = styled(Empty)`
display: block;
margin-top: 8px;
`;
const DescSortIcon = styled(CollapsedIcon)`
margin-left: -2px;