1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Show placeholder along with no items text

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

View File

@ -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 />;

View File

@ -33,6 +33,12 @@
position: relative;
min-height: 200px;
}
.noItemsHolder {
position: absolute;
width: 100%;
height: 100%;
}
}
.ItemListLayoutVisibilityMenu {