Skip to content

share-card: flexShrink:0 on title/subtitle (fix Satori collapse under flex:1 sibling) - #1276

Merged
Flotapponnier merged 1 commit into
devfrom
fix/satori-title-shrink
Jul 17, 2026
Merged

share-card: flexShrink:0 on title/subtitle (fix Satori collapse under flex:1 sibling)#1276
Flotapponnier merged 1 commit into
devfrom
fix/satori-title-shrink

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Long-title benches (rpc-capabilities, 96 chars) had title text visually overlapping leaderboard rows and snapshot subtitle even after PR #1275 font-size scaling.

Root cause: Satori's yoga layout applies default flex-shrink: 1 to flex-column children. When a sibling has flex: 1 (leaderboard rows container), Satori collapses the 2-line title's height to fit, but the text still renders at its true multi-line height, painting over the next sibling.

Fix: flexShrink: 0 on title + subtitle divs in ranking, leaderboard, snapshot, compare templates forces Satori to reserve the true content height.

@Flotapponnier
Flotapponnier merged commit 0359c29 into dev Jul 17, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant