mirror of
https://github.com/outline/outline.git
synced 2026-12-05 18:55:10 +03:00
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:
1 parent
6634d23b60
commit
77bc6818c4
1 file changed
+10
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user