From a6345250ca2b765d2bc6d8707b0b1bfa73a56efd Mon Sep 17 00:00:00 2001 From: Jingles Date: Sun, 10 May 2026 16:50:23 +0800 Subject: [PATCH] fix(wallet-assets): show actual IPFS NFT image instead of hardcoded CID MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The IPFS branch of the asset card was passing a single hardcoded ipfs:// literal to , so every IPFS-based NFT in the wallet rendered the same placeholder image instead of its own metadata.image. The non-IPFS sibling already uses imageSrc / name / 60x60 correctly; this brings the IPFS branch in line. Also fixes: - alt text now uses the asset name (was "IPFS Image" — bad a11y) - width/height set to 60 to match the parent 60x60 div (was 300, was being clipped by overflow-hidden + wasting bandwidth) Single occurrence in the codebase. Introduced 2025-03-27. --- src/components/pages/wallet/assets/wallet-assets.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/pages/wallet/assets/wallet-assets.tsx b/src/components/pages/wallet/assets/wallet-assets.tsx index 8f10dfb6..a6a458d0 100644 --- a/src/components/pages/wallet/assets/wallet-assets.tsx +++ b/src/components/pages/wallet/assets/wallet-assets.tsx @@ -84,12 +84,10 @@ export default function WalletAssets({ appWallet }: { appWallet: Wallet }) { > {isImageIpfs ? ( ) : (