From 0112eaa1490f87661d09b5cf0551f50325e62993 Mon Sep 17 00:00:00 2001 From: Florent Tapponnier Date: Mon, 1 Jun 2026 11:28:31 +0200 Subject: [PATCH] fix: shrink region-grid + hide extra ledger cols on mobile aggregator-head-lag (and other geo-distributed Solana benches) showed overflow on iPhone because: - region-grid cells used grid-cols-[1fr_5rem] on every viewport; with 3 regions + a 128px Product column the table intrinsic min was ~404px > 375px iPhone SE viewport. Now: grid-cols-[1fr_auto] on mobile, Product col w-20 (80px) instead of w-32, tighter gap, smaller value font. Stays at the original densities from sm: up. - ledger Slot delta and Secondary columns were visible on mobile (no hidden md:table-cell), adding 2 extra mono columns to benches with hasSlots/secondary. Now hidden on mobile like the other aggregate columns (p90/p99/Mean/Delta/Success). --- src/components/ledger-table.tsx | 12 ++++++------ src/components/region-grid.tsx | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/ledger-table.tsx b/src/components/ledger-table.tsx index 5ee3a429..53355728 100644 --- a/src/components/ledger-table.tsx +++ b/src/components/ledger-table.tsx @@ -75,14 +75,14 @@ export function LedgerTable({ benchmark }: Props) { Trend {hasSlots && ( Slot delta )} {secondary && ( - + {secondary} )} @@ -98,8 +98,8 @@ export function LedgerTable({ benchmark }: Props) { Δ field Success 24h - {hasSlots && p50 / p99} - {secondary && Value} + {hasSlots && p50 / p99} + {secondary && Value} {hasSlots && ( {r.slots @@ -298,7 +298,7 @@ function Row({ )} {hasSecondary && ( - + {r.secondary?.value ?? "-"} )} diff --git a/src/components/region-grid.tsx b/src/components/region-grid.tsx index 73c8ea00..eeeb8609 100644 --- a/src/components/region-grid.tsx +++ b/src/components/region-grid.tsx @@ -41,7 +41,7 @@ export function RegionGrid({ benchmark }: Props) { - + {REGIONS.map((region) => (
ProductProduct {region.label} @@ -73,10 +73,10 @@ export function RegionGrid({ benchmark }: Props) { const max = regionMax.get(region.key) ?? 1; const pct = Math.max(2, (point.p50 / max) * 100); return ( - -
+
+
{fmtUnit(point.p50, unit)}