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:
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) {
|
if (this.props.showEmptyTablePlaceholder && this.props.renderTableHeader && this.props.tableId) {
|
||||||
return <Placeholder renderTableHeader={this.props.renderTableHeader}/>;
|
return (
|
||||||
|
<>
|
||||||
|
<Placeholder renderTableHeader={this.props.renderTableHeader} tableId={this.props.tableId}/>
|
||||||
|
<div className="noItemsHolder">
|
||||||
|
<NoItems />
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
return <NoItems />;
|
return <NoItems />;
|
||||||
|
|||||||
@@ -33,6 +33,12 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
min-height: 200px;
|
min-height: 200px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.noItemsHolder {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ItemListLayoutVisibilityMenu {
|
.ItemListLayoutVisibilityMenu {
|
||||||
|
|||||||
Reference in new issue
Block a user