diff --git a/src/components/Edges/EdgeText.vue b/src/components/Edges/EdgeText.vue index 79ec44c5..47d7f957 100644 --- a/src/components/Edges/EdgeText.vue +++ b/src/components/Edges/EdgeText.vue @@ -13,7 +13,9 @@ const props = withDefaults(defineProps(), { const { transform: paneTransform } = useVueFlow() const edgeRef = templateRef('edge-text', null) const { width, height } = useElementBounding(edgeRef) -const transform = computed(() => `translate(${props.x - width.value / paneTransform.value[2] / 2} ${props.y - height.value / 2})`) +const transform = computed( + () => `translate(${props.x - width.value / paneTransform.value[2] / 2} ${props.y - height.value / paneTransform.value[2] / 2})`, +)