From 77bc6818c4eac8e257b23d7daf988ec74ed1685a Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sat, 10 Oct 2026 11:30:43 -0400 Subject: [PATCH] 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 --- app/components/Table.tsx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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;