Conditionally use the FlexMasonry layout for datacenters within TopoViz
This commit is contained in:
parent
1602d72789
commit
6e55d8a6eb
|
@ -62,6 +62,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.flex-masonry-columns-2 > .flex-masonry-item > .chart.topo-viz-node svg {
|
||||
width: calc(100% - 0.75em);
|
||||
}
|
||||
|
||||
.chart.topo-viz-edges {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
{{this.aggregatedAllocationResources.cpu}}/{{this.aggregatedNodeResources.cpu}} Mhz</span>
|
||||
</div>
|
||||
<div class="boxed-section-body">
|
||||
{{#each @datacenter.nodes as |node|}}
|
||||
<FlexMasonry @columns={{if @isSingleColumn 1 2}} @items={{@datacenter.nodes}} as |node|>
|
||||
<TopoViz::Node
|
||||
@node={{node}}
|
||||
@heightScale={{@heightScale}}
|
||||
@onAllocationSelect={{@onAllocationSelect}} />
|
||||
{{/each}}
|
||||
</FlexMasonry>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue