Skip to content

Commit 2749762

Browse files
committed
Fix
1 parent 8f27ec9 commit 2749762

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/FancyArrow.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ const { arcSvg, textPosition } = useRoughArrow({
6262
<g v-html="arcSvg" />
6363
</svg>
6464
<div
65-
v-if="$slots.default"
65+
v-if="$slots.default && textPosition"
6666
:style="{
6767
position: 'absolute',
68-
left: `${textPosition?.x ?? 0}px`,
69-
top: `${textPosition?.y ?? 0}px`,
68+
left: `${textPosition.x}px`,
69+
top: `${textPosition.y}px`,
7070
transform: 'translate(-50%, -50%)',
7171
}"
7272
>

0 commit comments

Comments
 (0)