diff --git a/app/components/Table.tsx b/app/components/Table.tsx index 7900ef2d89..5655825534 100644 --- a/app/components/Table.tsx +++ b/app/components/Table.tsx @@ -442,7 +442,7 @@ function TableViewInner({ bottomOffset={-rowHeight * 5} /> )} - {isEmpty && {t("No results")}} + {isEmpty && {t("No results")}} ); } @@ -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;