From 7930e725afa10ffe1ec9d13cb957dad8b7ce3519 Mon Sep 17 00:00:00 2001 From: dotta Date: Fri, 20 Mar 2026 07:24:59 -0500 Subject: [PATCH] fix: apply text centering to default card renderer (warmth/mono/nebula) The previous text centering fix (y+66/y+82) only updated the circuit and schematic custom renderers. The defaultRenderCard used by warmth, monochrome, and nebula still had the old y+52/y+68 positions. Co-Authored-By: Paperclip --- server/src/routes/org-chart-svg.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/org-chart-svg.ts b/server/src/routes/org-chart-svg.ts index c7e39cae..71208a38 100644 --- a/server/src/routes/org-chart-svg.ts +++ b/server/src/routes/org-chart-svg.ts @@ -399,8 +399,8 @@ function defaultRenderCard(ln: LayoutNode, theme: StyleTheme): string { const cx = ln.x + ln.width / 2; const avatarCY = ln.y + 24; - const nameY = ln.y + 52; - const roleY = ln.y + 68; + const nameY = ln.y + 66; + const roleY = ln.y + 82; const filterId = `shadow-${ln.node.id}`; const shadowFilter = theme.cardShadow