From 8077043c7e003189a7fb9e8a3731c8d1803fc3c9 Mon Sep 17 00:00:00 2001 From: hadesy <6346047+hadesy@users.noreply.github.com> Date: Wed, 5 Apr 2023 17:23:26 +0800 Subject: [PATCH] fix:incorrect node name length calculation (#252) --- src/views/dashboard/related/topology/components/Graph.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/dashboard/related/topology/components/Graph.vue b/src/views/dashboard/related/topology/components/Graph.vue index 8f906f9e..61544d8d 100644 --- a/src/views/dashboard/related/topology/components/Graph.vue +++ b/src/views/dashboard/related/topology/components/Graph.vue @@ -42,7 +42,7 @@ limitations under the License. --> :y="n.y - 38" :href="!n.type || n.type === `N/A` ? icons.UNDEFINED : icons[n.type.toUpperCase().replace('-', '')]" /> - + {{ n.name.length > 20 ? `${n.name.substring(0, 20)}...` : n.name }}