From 1b5087f6e5b58e8272851504e7eeb3f69dffd587 Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Wed, 17 Feb 2021 13:51:48 -0500 Subject: [PATCH] ui: Use ember-on-resize-modifier to fix bug with sidebar (#9761) * Use ember-on-resize-modifier to fix bug with sidebar * Fix recursive height by dynamically setting fixed height * Refactor --- .../topology-metrics/down-lines/index.hbs | 2 -- .../app/components/topology-metrics/index.hbs | 17 +++++++++++------ .../app/components/topology-metrics/index.js | 14 ++++++++++++-- .../app/components/topology-metrics/layout.scss | 1 - .../topology-metrics/up-lines/index.hbs | 2 -- 5 files changed, 23 insertions(+), 13 deletions(-) diff --git a/ui/packages/consul-ui/app/components/topology-metrics/down-lines/index.hbs b/ui/packages/consul-ui/app/components/topology-metrics/down-lines/index.hbs index 0fe3158ed9..681e799a85 100644 --- a/ui/packages/consul-ui/app/components/topology-metrics/down-lines/index.hbs +++ b/ui/packages/consul-ui/app/components/topology-metrics/down-lines/index.hbs @@ -1,5 +1,3 @@ -{{on-window 'resize' (action this.getIconPositions)}} - {{#if (gt @lines.length 0)}} {{#if (gt @topology.Downstreams.length 0)}} -
+

{{@dc}}

@@ -83,7 +84,11 @@ {{#if (gt @topology.Upstreams.length 0)}}
{{#each-in (group-by "Datacenter" @topology.Upstreams) as |dc upstreams|}} -
+

{{dc}}

{{#each upstreams as |item|}}