From eca5244ec4e88e2646ef009e91e08be64653dcd8 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 4 Aug 2026 15:55:23 +0000 Subject: [PATCH] Hide network icons that have no asset The rail dropdown renders /networks/.svg for every entry with no error handling, and three of the eight networks in crypto.ts have no file: ethereum, plasma and tron. Those rows currently show a broken image beside the network name. USDT has had three of them for a while; adding Ethereum to USDC in #792 put the first one on a dropdown that had been clean. Hiding on error rather than adding artwork, because an Ethereum or Tron mark is brand material and an invented one that doesn't match the existing set is worse than a gap. The assets are still worth adding. visibility rather than display, so the 20x20 slot is preserved and the network names stay aligned down the list. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01MMnjJ8yWJsui7jLqqrDrL4 --- .../grid-visualizer/src/components/InputCard/InputCard.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/grid-visualizer/src/components/InputCard/InputCard.tsx b/components/grid-visualizer/src/components/InputCard/InputCard.tsx index 77ca5cc1f..83ac75494 100644 --- a/components/grid-visualizer/src/components/InputCard/InputCard.tsx +++ b/components/grid-visualizer/src/components/InputCard/InputCard.tsx @@ -180,11 +180,14 @@ function NetworkDropdown({ }} type="button" > + {/* Not every network has an icon in public/networks yet; hide the + broken image rather than showing a torn-page glyph next to the name. */} {/* eslint-disable-next-line @next/next/no-img-element */} { e.currentTarget.style.visibility = 'hidden'; }} /> {acct.network}