Skip to content
Merged
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
11 changes: 11 additions & 0 deletions src/app/benchmarks/[slug]/share-card/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -969,23 +969,34 @@ async function renderSnapshot(
gap: 6,
}}
>
{/* Title + subtitle. Satori quirk: a bare `display: flex`
text div stays at one-line height even when the text
visually wraps, so the next sibling stacks on top of the
wrapped lines. Explicit `flexDirection: column` on each
text box forces satori to measure the wrapped content
height. maxWidth pins the wrap point below the container
width so long titles never touch the right edge. */}
<div
style={{
display: "flex",
flexDirection: "column",
fontSize: 48,
fontWeight: 700,
color: INK,
letterSpacing: "-0.02em",
lineHeight: 1.05,
maxWidth: 1086,
}}
>
{benchmark.title}
</div>
<div
style={{
display: "flex",
flexDirection: "column",
fontSize: 16,
color: INK_SOFT,
lineHeight: 1.35,
maxWidth: 980,
}}
>
Expand Down
Loading