fix: NFT/token/DeFi full view headers and NFT grid layout#31010
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #31010 +/- ##
==========================================
- Coverage 82.84% 82.84% -0.01%
==========================================
Files 5574 5574
Lines 143873 143873
Branches 33409 33409
==========================================
- Hits 119187 119185 -2
- Misses 16693 16694 +1
- Partials 7993 7994 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Impact Analysis:
SmokeWalletPlatform is selected because TokensFullView is embedded in the Trending tab (TrendingTokensFullView uses TokensFullView as a base), and the tag description explicitly states "changes to Tokens views (headers, lists, full views) that are embedded in Trending affect this tag." Performance Test Selection: |
Description
reduce excess spacing between the header, image, and title
absolute-positioned title and correct safe area handling
correct safe area handling
useSafeAreaInsets at the container level and using an absolutely-positioned title, which is immune to HeaderBase's
onLayout-based centering re-render
from textContainer with flex: 0 so aspectRatio can correctly determine the placeholder size
Changelog
CHANGELOG entry: fix NFT/token/DeFi full view headers and NFT grid layout
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3318
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Low Risk
UI-only layout and header refactors with updated unit tests; no auth, data, or payment logic touched.
Overview
Tokens, NFT, and DeFi full-view screens now share the same header pattern: design-system
ButtonIcon+ centeredText, top inset fromuseSafeAreaInsets, andSafeAreaViewedges that exclude the top so titles stay centered during navigation animations. NftFullView drops modal-onlyBottomSheetHeader; Tokens and DeFi drop legacyHeaderBase.NftDetails loses extra wrapper padding and tightens media section vertical spacing so the header, image, and title sit closer together.
CollectibleMedia applies
noFlex(flex: 0) on token-ID fallbacks so grid cells without images keep square dimensions instead of collapsing and overflowing the chain badge.Reviewed by Cursor Bugbot for commit 6e5d782. Bugbot is set up for automated code reviews on this repo. Configure here.