Show placeholder along with no items text

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-02-18 15:04:40 +03:00
1 parent 3b8cf08c40
commit 1aa7561ccf
2 files changed
+15 -2

No files matched your search

@@ -187,8 +187,15 @@ export class ItemListLayoutContent<I extends ItemObject> extends React.Component
);
}
if (this.props.showEmptyTablePlaceholder && this.props.renderTableHeader) {
return <Placeholder renderTableHeader={this.props.renderTableHeader}/>;
if (this.props.showEmptyTablePlaceholder && this.props.renderTableHeader && this.props.tableId) {
return (
<>
<Placeholder renderTableHeader={this.props.renderTableHeader} tableId={this.props.tableId}/>
<div className="noItemsHolder">
<NoItems />
</div>
</>
);
}
return <NoItems />;
@@ -33,6 +33,12 @@
position: relative;
min-height: 200px;
}
.noItemsHolder {
position: absolute;
width: 100%;
height: 100%;
}
}
.ItemListLayoutVisibilityMenu {