Skip to content

Commit 8d8597c

Browse files
committed
(add) Added a y-property on the text svg to allow for relative positioning of text to be on top of node
1 parent 03f8d5a commit 8d8597c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/components/AtomsRelationship.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ function Node({ node }) {
8989
fontSize={9}
9090
fontFamily="Arial"
9191
textAnchor="middle"
92+
y = "-20"
9293
style={{ pointerEvents: 'none' }}
9394
fill={isParent ? white : citrus}
9495
>

0 commit comments

Comments
 (0)