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:
parent
d7a08c1db2
commit
7930e725af
1 changed files with 2 additions and 2 deletions
|
|
@ -399,8 +399,8 @@ function defaultRenderCard(ln: LayoutNode, theme: StyleTheme): string {
|
||||||
const cx = ln.x + ln.width / 2;
|
const cx = ln.x + ln.width / 2;
|
||||||
|
|
||||||
const avatarCY = ln.y + 24;
|
const avatarCY = ln.y + 24;
|
||||||
const nameY = ln.y + 52;
|
const nameY = ln.y + 66;
|
||||||
const roleY = ln.y + 68;
|
const roleY = ln.y + 82;
|
||||||
|
|
||||||
const filterId = `shadow-${ln.node.id}`;
|
const filterId = `shadow-${ln.node.id}`;
|
||||||
const shadowFilter = theme.cardShadow
|
const shadowFilter = theme.cardShadow
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue