Skip to content

share-card snapshot: fix title/subtitle overlap (satori flex quirk)#1319

Merged
Flotapponnier merged 1 commit into
mainfrom
fix/snapshot-title-overlap
Jul 22, 2026
Merged

share-card snapshot: fix title/subtitle overlap (satori flex quirk)#1319
Flotapponnier merged 1 commit into
mainfrom
fix/snapshot-title-overlap

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

The snapshot template's title + subtitle divs used bare display: flex which in satori keeps the outer box at one-line height even when the text visually wraps. Long titles like Best DEX for a $BOT market order, live slippage ranked on /benchmarks/perp-execution-quality then had the subtitle stacked on top of the title's wrapped second line (see screenshot in report).

Fix: add flexDirection: column + explicit maxWidth on both text boxes so satori measures the wrapped content height correctly. No behavior change for short titles.

@Flotapponnier
Flotapponnier merged commit bf80dbd into main Jul 22, 2026
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