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 <noreply@paperclip.ing>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user