From 1c696e6c2a2e6dd3fca6e95a071f69a4745a85c8 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Sun, 20 Mar 2022 11:05:55 +0800 Subject: [PATCH] fix style --- .../related/topology/components/Graph.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/dashboard/related/topology/components/Graph.vue b/src/views/dashboard/related/topology/components/Graph.vue index bbce8494..113e9219 100644 --- a/src/views/dashboard/related/topology/components/Graph.vue +++ b/src/views/dashboard/related/topology/components/Graph.vue @@ -88,8 +88,8 @@ const { t } = useI18n(); const selectorStore = useSelectorStore(); const topologyStore = useTopologyStore(); const dashboardStore = useDashboardStore(); -const height = ref(document.body.clientHeight - 90); -const width = ref(document.body.clientWidth - 40); +const height = ref(document.body.clientHeight); +const width = ref(document.body.clientWidth); const loading = ref(false); const simulation = ref(null); const svg = ref>(null); @@ -410,8 +410,8 @@ function setConfig() { showSetting.value = !showSetting.value; } function resize() { - height.value = document.body.clientHeight - 90; - width.value = document.body.clientWidth - 40; + height.value = document.body.clientHeight; + width.value = document.body.clientWidth; svg.value.attr("height", height.value).attr("width", width.value); } function updateSettings(config: any) { @@ -476,10 +476,10 @@ onBeforeUnmount(() => { .setting { position: absolute; - top: 70px; - right: 0; + top: 80px; + right: 10px; width: 400px; - height: 700px; + height: 600px; background-color: #2b3037; overflow: auto; padding: 0 15px;