diff --git a/ui/app/styles/charts/topo-viz-node.scss b/ui/app/styles/charts/topo-viz-node.scss index 0baadc7c0..ac2f9ea86 100644 --- a/ui/app/styles/charts/topo-viz-node.scss +++ b/ui/app/styles/charts/topo-viz-node.scss @@ -1,7 +1,11 @@ .chart.topo-viz-node { display: block; - svg { + .label { + font-weight: $weight-normal; + } + + .chart { display: inline-block; height: 100%; width: 100%; @@ -57,6 +61,13 @@ } } + .empty-text { + fill: $red; + transform: translate(50%, 50%); + text-anchor: middle; + alignment-baseline: central; + } + & + .topo-viz-node { margin-top: 1em; } @@ -74,6 +85,7 @@ } } -.flex-masonry-columns-2 > .flex-masonry-item > .chart.topo-viz-node svg { +.flex-masonry-columns-2 > .flex-masonry-item > .chart.topo-viz-node svg, +.flex-masonry-columns-2 > .flex-masonry-item > .chart.topo-viz-node .label { width: calc(100% - 0.75em); } diff --git a/ui/app/templates/components/topo-viz/node.hbs b/ui/app/templates/components/topo-viz/node.hbs index 8a756fd03..73c88d5b0 100644 --- a/ui/app/templates/components/topo-viz/node.hbs +++ b/ui/app/templates/components/topo-viz/node.hbs @@ -1,7 +1,9 @@
- {{@node.node.name}} +
+ + {{@node.node.name}} + {{this.count}} Allocs {{@node.memory}} MiB, {{@node.cpu}} Mhz
@@ -94,6 +96,8 @@ {{/each}} + {{else}} +