Skip to content

Commit a2484e2

Browse files
committed
fix(ui): left-align node name labels, bump font to 11px
1 parent 179d109 commit a2484e2

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

packages/fbp-graph-editor/src/components/GraphNode.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,10 @@ export function GraphNode({ node, onStartConnect, onEndConnect }: GraphNodeProps
154154
>
155155
{/* Node name label above */}
156156
<text
157-
x={width / 2}
157+
x={4}
158158
y={-8}
159-
textAnchor="middle"
160159
fill="#52525b"
161-
fontSize={10}
160+
fontSize={11}
162161
fontFamily="system-ui, sans-serif"
163162
>
164163
{node.name}
@@ -326,11 +325,10 @@ export function GraphNode({ node, onStartConnect, onEndConnect }: GraphNodeProps
326325
>
327326
{/* Node name label above */}
328327
<text
329-
x={NODE_WIDTH / 2}
328+
x={4}
330329
y={-8}
331-
textAnchor="middle"
332330
fill="#52525b"
333-
fontSize={10}
331+
fontSize={11}
334332
fontFamily="system-ui, sans-serif"
335333
>
336334
{node.name}

0 commit comments

Comments
 (0)