diff --git a/src/app/api/internal/revalidate-aggregate/route.ts b/src/app/api/internal/revalidate-aggregate/route.ts index d42da225..39d221d9 100644 --- a/src/app/api/internal/revalidate-aggregate/route.ts +++ b/src/app/api/internal/revalidate-aggregate/route.ts @@ -43,5 +43,6 @@ export async function POST(req: Request): Promise { // can serve different values than the hub for up to 5 minutes after a // worker publish. revalidateTag("benchmarks", "default"); - return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks"] }); + revalidateTag("data-api-cohort", "default"); + return NextResponse.json({ revalidated: true, tags: ["bench-aggregate", "benchmarks", "data-api-cohort"] }); } diff --git a/src/app/benchmarks/[slug]/share-card/route.tsx b/src/app/benchmarks/[slug]/share-card/route.tsx index 07abf13f..38b3576d 100644 --- a/src/app/benchmarks/[slug]/share-card/route.tsx +++ b/src/app/benchmarks/[slug]/share-card/route.tsx @@ -885,8 +885,12 @@ async function renderLeaderboard( // the 630px canvas (weekend-drift 11 rows + long title case). const count = sorted.length; const titleLen = benchmark.title.length; - const dense = count >= 8 || titleLen > 55; - const veryDense = count >= 10 || titleLen > 70; + // The "and N more" line counts as an extra row for density — 9 rows + + // truncation line overflows the 630px canvas at dense (not veryDense) + // sizing, pushing the text on top of the CardFooter border. + const effectiveCount = count + (truncatedCount > 0 ? 1 : 0); + const dense = effectiveCount >= 8 || titleLen > 55; + const veryDense = effectiveCount >= 10 || titleLen > 70; const titleSize = veryDense ? 32 : dense ? 40 : 50; const rankSize = veryDense ? 18 : dense ? 20 : 24; const nameSize = veryDense ? 18 : dense ? 20 : 24; diff --git a/src/components/data-api-bench-groups.tsx b/src/components/data-api-bench-groups.tsx index ee6e2268..f746488b 100644 --- a/src/components/data-api-bench-groups.tsx +++ b/src/components/data-api-bench-groups.tsx @@ -36,7 +36,7 @@ export function DataApiBenchGroups({ groups }: { groups: DataApiGroupRow[] }) { Providers Leader Runners-up - By region / chain + Breakdown @@ -167,10 +167,16 @@ function BenchRow({ {showRegionChain ? (
{hasRegions && ( - +
+ Region + +
)} - {hasChains && !hasRegions && ( - + {hasChains && ( +
+ Chain + +
)}
) : (