From d98ebea45c8281fb206d76e41e611228d2be42ed Mon Sep 17 00:00:00 2001 From: Florent Tapponnier Date: Fri, 29 May 2026 17:13:50 +0200 Subject: [PATCH] fix(ledger): move chain coverage chips to second row so titles fit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported visually: chips ('#1 · BASE', '#1 · BNB CHAIN', '#1 · SOLANA') were rendered inline in the same flex row as the provider logo + name + tag + type badge, eating horizontal space on the name column. Names truncated to 'Mo...', 'Cod...', 'GeckoTerm...' on the bench leaderboard. Restructure: wrap in a flex-col, keep logo/name/tag/type on top line, push the chips to a second flex-wrap row indented 28 px to align under the name. Chips still md+ only. --- src/components/ledger-table.tsx | 85 +++++++++++++++++---------------- 1 file changed, 44 insertions(+), 41 deletions(-) diff --git a/src/components/ledger-table.tsx b/src/components/ledger-table.tsx index 0d605cad..2803636c 100644 --- a/src/components/ledger-table.tsx +++ b/src/components/ledger-table.tsx @@ -182,48 +182,51 @@ function Row({ {String(i + 1).padStart(2, "0")} - - - {isRegion(r.slug) ? ( - - {r.name} - - ) : ( - - {r.name} - - )} - {r.tag && !isOffline && ( - - {r.tag} - - )} - {isOffline && ( - - - - Currently unavailable +
+ + + {isRegion(r.slug) ? ( + + {r.name} - - )} - {r.type && !isOffline && ( - - - - )} - {/* Per-chain coverage chip — chain-restricted providers like - GMGN (Solana-only) are flagged inline so the unfiltered - ranking can't be misread as a global #1. Renders nothing - when the bench has no per-chain leader data. */} + ) : ( + + {r.name} + + )} + {r.tag && !isOffline && ( + + {r.tag} + + )} + {isOffline && ( + + + + Currently unavailable + + + )} + {r.type && !isOffline && ( + + + + )} + + {/* Per-chain coverage chips on their own row — chain-restricted + providers like GMGN (Solana-only) are flagged so the unfiltered + ranking can't be misread as a global #1. Indented to align + with the name (logo width + gap = 20 + 8 = 28 px). Renders + nothing when the bench has no per-chain leader data. */} {!isOffline && ( - + )} - +
{isOffline ? (