Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions demo/src/showcase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ function accentNote(color: string, kicker: string): any {
return {
...baseCard,
defaultWidth: SMALL_W,
defaultHeight: 86,
defaultHeight: 110,
type: 'text' as const,
stroke: hexAlpha(color, 0.35),
fill: hexAlpha(color, 0.05),
Expand Down Expand Up @@ -842,7 +842,7 @@ nodes.push({
x: initiativesOffsetX + initiativesTotalW + CARD_GAP,
y: ROW_Y.initiatives,
width: SMALL_W,
height: 86,
height: 110,
})

// --- Secondary initiatives ---
Expand Down Expand Up @@ -875,7 +875,7 @@ nodes.push({
x: secondaryOffsetX + secondaryTotalW + CARD_GAP,
y: ROW_Y.secondary,
width: SMALL_W,
height: 86,
height: 110,
})

// --- Footer cards: customers + revenue ---
Expand Down
9 changes: 7 additions & 2 deletions packages/core/src/slots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,13 @@ export function computeCategorySlotRegions(
// and sits at HEADER_INSET_Y; pad another small gap so the
// bar reads as decoration rather than a divider line.
y + HEADER_INSET_Y + fs + 6
: // Legacy: under one line of body text.
y + HEADER_INSET_Y + fs + Math.round(fs * 0.9)
: // No header: anchor just above the footer strip so the bar
// sits between the body content and the stats region
// regardless of how many lines the title wraps to. A
// top-anchored position (legacy: HEADER_INSET_Y + fs + 0.9em)
// only works for single-line titles; multi-line titles wrap
// into the bar because the centered label straddles it.
y + height - FOOTER_INSET_Y - footer - bandHeight - 6
return {
x: x + HEADER_INSET_X,
y: bandY,
Expand Down
Loading