From 4da299bad5802320b0a7bb5a1cb4350918c615c0 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier Date: Fri, 17 Jul 2026 18:21:10 +0200 Subject: [PATCH] =?UTF-8?q?share-card:=20shrink=20snapshot=20chart=20280?= =?UTF-8?q?=E2=86=92220=20(2-row=20legend=20overlapped=20footer)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/benchmarks/[slug]/share-card/route.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/benchmarks/[slug]/share-card/route.tsx b/src/app/benchmarks/[slug]/share-card/route.tsx index d15275cb..ff890953 100644 --- a/src/app/benchmarks/[slug]/share-card/route.tsx +++ b/src/app/benchmarks/[slug]/share-card/route.tsx @@ -1004,7 +1004,11 @@ async function renderSnapshot( .filter((s) => s.values.length > 1); const chartW = 1086; - const chartH = 280; + // 280 was too tall - the legend routinely wraps to 2 rows and + // overlaps the footer on wide-cohort benches (rpc-capabilities 13, + // ethereum-rpc 8, perp-fees 8). 220 leaves ~60px more for 2 legend + // rows to fit above the footer. + const chartH = 220; const all = seriesList.flatMap((s) => s.values); const min = all.length ? Math.min(...all) : 0; const max = all.length ? Math.max(...all) : 1;