From 47e24e1dab056684f618fdfd66157510a6cb42c1 Mon Sep 17 00:00:00 2001 From: Fine Date: Thu, 15 Sep 2022 17:00:40 +0800 Subject: [PATCH] clean up --- src/views/dashboard/related/network-profiling/Content.vue | 2 +- .../related/network-profiling/components/ProcessTopology.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/dashboard/related/network-profiling/Content.vue b/src/views/dashboard/related/network-profiling/Content.vue index f041b75f..d9d615ad 100644 --- a/src/views/dashboard/related/network-profiling/Content.vue +++ b/src/views/dashboard/related/network-profiling/Content.vue @@ -53,7 +53,7 @@ const { t } = useI18n(); height: 100%; flex-grow: 2; min-width: 700px; - overflow: auto; + overflow: hidden; position: relative; width: calc(100% - 330px); } diff --git a/src/views/dashboard/related/network-profiling/components/ProcessTopology.vue b/src/views/dashboard/related/network-profiling/components/ProcessTopology.vue index 270be326..a3316d90 100644 --- a/src/views/dashboard/related/network-profiling/components/ProcessTopology.vue +++ b/src/views/dashboard/related/network-profiling/components/ProcessTopology.vue @@ -190,10 +190,10 @@ async function init() { function drawGraph() { const dom = chart.value?.getBoundingClientRect() || { - height: 30, + height: 20, width: 0, }; - height.value = (dom.height || 40) - 30; + height.value = (dom.height || 40) - 20; width.value = dom.width; diff.value[0] = (dom.width - radius * 2) / 2 + radius; svg.value.call(zoom(d3, graph.value, diff.value));