update style

This commit is contained in:
Qiuxia Fan 2022-03-21 14:32:41 +08:00
parent ff2fca1681
commit 42e91fa8f6
2 changed files with 3 additions and 3 deletions

View File

@ -213,7 +213,7 @@ function handleNodeClick(d: Node & { x: number; y: number }) {
topologyStore.setNode(d);
topologyStore.setLink(null);
operationsPos.x = d.x;
operationsPos.y = d.y - 60;
operationsPos.y = d.y - 70;
if (d.layer === String(dashboardStore.layerId)) {
return;
}

View File

@ -189,8 +189,8 @@ function selectNodeLink(d: any) {
}
topologyStore.setNode(d.data);
topologyStore.setLink(null);
operationsPos.x = d.event.event.clientX;
operationsPos.y = d.event.event.clientY;
operationsPos.x = d.event.event.clientX - 200;
operationsPos.y = d.event.event.clientY - 150;
}
async function changeDepth(opt: Option[] | any) {