From c1a9e263e6fa7969c0dfd306b3de1a8f141e7423 Mon Sep 17 00:00:00 2001 From: Mutasem Date: Thu, 28 Oct 2021 17:17:50 +0200 Subject: [PATCH] fix output label positions --- packages/editor-ui/src/components/mixins/nodeBase.ts | 2 +- packages/editor-ui/src/views/NodeView.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/components/mixins/nodeBase.ts b/packages/editor-ui/src/components/mixins/nodeBase.ts index 142cfe135f..999295c77b 100644 --- a/packages/editor-ui/src/components/mixins/nodeBase.ts +++ b/packages/editor-ui/src/components/mixins/nodeBase.ts @@ -200,7 +200,7 @@ export const nodeBase = mixins( ['Label', { id: 'input-name-label', - location: [-2, 0.5], + location: [-3, 0.5], label: nodeTypeData.inputNames[index], cssClass: 'node-input-endpoint-label', visible: true, diff --git a/packages/editor-ui/src/views/NodeView.vue b/packages/editor-ui/src/views/NodeView.vue index d2418f7985..63caa18fd4 100644 --- a/packages/editor-ui/src/views/NodeView.vue +++ b/packages/editor-ui/src/views/NodeView.vue @@ -1601,7 +1601,7 @@ export default mixins( const inputNameOverlay = info.targetEndpoint.getOverlay('input-name-label'); if (inputNameOverlay) { - inputNameOverlay.setLocation([-4, .5]); + inputNameOverlay.setLocation([-4.5, .5]); } this.$store.commit('addConnection', {