fix style

This commit is contained in:
Fine 2022-08-11 10:28:21 +08:00
parent 4860c05e5a
commit 58aca03d75
2 changed files with 6 additions and 3 deletions

View File

@ -19,7 +19,7 @@ limitations under the License. -->
<div class="schedules">
<Schedules />
</div>
<div class="item">
<div class="item" v-show="networkProfilingStore.nodes.length">
<process-topology />
</div>
</div>
@ -29,6 +29,9 @@ limitations under the License. -->
import Tasks from "./components/Tasks.vue";
import Schedules from "./components/Schedules.vue";
import ProcessTopology from "./components/ProcessTopology.vue";
import { useNetworkProfilingStore } from "@/store/modules/network-profiling";
const networkProfilingStore = useNetworkProfilingStore();
</script>
<style lang="scss" scoped>
.content {

View File

@ -80,10 +80,10 @@ async function init() {
function drawGraph() {
const dom = chart.value?.getBoundingClientRect() || {
height: 40,
height: 20,
width: 0,
};
height.value = dom.height - 40;
height.value = dom.height - 20;
width.value = dom.width;
svg.value.attr("height", height.value).attr("width", width.value);
tip.value = (d3tip as any)().attr("class", "d3-tip").offset([-8, 0]);