fix(TMCU-539): add horizontal padding to NFT skeleton in full view#27077
Conversation
The NftGridSkeleton had minimal padding (p-1) regardless of context, while the actual NFT grid FlatList uses px-4 in full view mode. This caused a visual jump when loading finished. Thread isFullView from NftGrid through NftGridContent to NftGridSkeleton so the skeleton conditionally applies px-4 in full view and px-1 in tab/homepage view. Fixes: TMCU-539
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
This is a minor UI polish change that:
None of the available E2E test tags specifically cover NFT skeleton loading states. The wallet views that use NftGrid (Wallet, NftFullView, Homepage NFT section) are not directly tested by any of the available smoke test tags in a way that would validate skeleton padding. Running E2E tests would not provide meaningful validation for this styling change. Performance Test Selection: |
|



Description
The NFT grid skeleton loading state had minimal padding (
p-1) regardless of context, while the actual NFT gridFlatListusespx-4horizontal padding in full view mode. This caused an inconsistent layout jump when loading finished and the skeleton was replaced by real content.The fix threads
isFullViewfromNftGridthroughNftGridContenttoNftGridSkeleton, so the skeleton conditionally appliespx-4in full view andpx-1in tab/homepage view -- matching the padding of the content it replaces in each context.Changelog
CHANGELOG entry: Fixed missing horizontal padding on NFT skeleton loading state in full view
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TMCU-539
Manual testing steps
Screenshots/Recordings
N/A -- padding-only fix, verified via tests.
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only change that adjusts loading-state layout; no business logic, data handling, or navigation behavior is modified.
Overview
Fixes a layout jump in the NFT grid loading state by matching
NftGridSkeletonhorizontal padding to the rendered grid.Threads
isFullViewfromNftGridthroughNftGridContentintoNftGridSkeleton, where the container now appliespx-4in full view andpx-1otherwise (replacing the previous fixedp-1).Written by Cursor Bugbot for commit afdbe36. This will update automatically on new commits. Configure here.