mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
workspace overview cluster list grows/shrinks according to existence of extension details
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
This commit is contained in:
parent
9cee1a800e
commit
9f3b8562d4
@ -1,4 +1,5 @@
|
||||
.WorkspaceOverview {
|
||||
height: 100%;
|
||||
|
||||
.ItemListLayout.WorkspaceClusters {
|
||||
background-color: var(--mainBackground);
|
||||
|
||||
@ -38,7 +38,7 @@ export class WorkspaceOverview extends Component<Props> {
|
||||
return (
|
||||
<div className="WorkspaceOverview flex column gaps box grow">
|
||||
<ItemListLayout
|
||||
className="WorkspaceClusters"
|
||||
className="WorkspaceClusters box grow"
|
||||
renderHeaderTitle={<div>Clusters</div>}
|
||||
isClusterScoped
|
||||
isSearchable={false}
|
||||
@ -66,11 +66,14 @@ export class WorkspaceOverview extends Component<Props> {
|
||||
<WorkspaceClusterMenu clusterItem={clusterItem} workspace={workspace} workspaceClusterStore={workspaceClusterStore}/>
|
||||
)}
|
||||
/>
|
||||
{ workspaceDetails.length > 0 &&
|
||||
{ workspaceDetails.length > 0 && (
|
||||
<>
|
||||
<hr/>
|
||||
<div className="extensions flex column gaps">
|
||||
{workspaceDetailRegistry.getItems().map(({ components: { Detail } }, index) => <Detail key={index} className="workspace-detail"/>)}
|
||||
</div>
|
||||
}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user