From 401b2415708ee8f18944bf4d34dcea963ec05021 Mon Sep 17 00:00:00 2001 From: dotta Date: Fri, 20 Mar 2026 07:04:59 -0500 Subject: [PATCH] fix: vertically center name/role text between avatar and card bottom Moved name baseline from y+58 to y+66 and role from y+74 to y+82, centering the text block in the 55px gap between the avatar circle bottom (y+41) and the card bottom (y+96). Co-Authored-By: Paperclip --- server/src/routes/org-chart-svg.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/routes/org-chart-svg.ts b/server/src/routes/org-chart-svg.ts index ef2bdeb2..c7e39cae 100644 --- a/server/src/routes/org-chart-svg.ts +++ b/server/src/routes/org-chart-svg.ts @@ -235,8 +235,8 @@ const THEMES: Record = { const bgColor = isCeo ? "rgba(168,85,247,0.06)" : theme.cardBg; const avatarCY = ln.y + 24; - const nameY = ln.y + 58; - const roleY = ln.y + 74; + const nameY = ln.y + 66; + const roleY = ln.y + 82; return ` @@ -299,8 +299,8 @@ const THEMES: Record = { const roleText = schemaRoles[tag] || schemaRoles.default; const avatarCY = ln.y + 24; - const nameY = ln.y + 58; - const roleY = ln.y + 74; + const nameY = ln.y + 66; + const roleY = ln.y + 82; return `