fix: remove gap between symbol and price change on default token card watchlist cp-8.5.0 - #33859
Conversation
… token card Co-authored-by: sahar-fehri <sahar.fehri@consensys.net>
PR template — items to address before "Ready for review"Warnings — informational, address before merging:
See docs/readme/ready-for-review.md for the full Definition of Ready for Review. |
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: Performance Test Selection: |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #33859 +/- ##
==========================================
- Coverage 84.78% 84.78% -0.01%
==========================================
Files 6246 6246
Lines 168298 168304 +6
Branches 41177 41181 +4
==========================================
+ Hits 142695 142697 +2
- Misses 15856 15858 +2
- Partials 9747 9749 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|



Description
Removes the unintended 12px vertical gap between the token symbol and price change percentage on default watchlist token cards in the empty watchlist view.
The card container uses
flexDirection: 'column'withgap: 12, which was applying between the symbol and percentage when they were separate direct children. Wrapping them in a parentViewgroups them into a single card child so only the gap between the top row (logo + checkbox) and the text group remains.Changelog
CHANGELOG entry: Fixed spacing between token symbol and price change on empty watchlist default token cards
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/ASSETS-3774
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
Layout-only JSX grouping in one watchlist card component; no logic, API, or data changes.
Overview
Fixes extra vertical space between the token symbol and 24h price change on default watchlist token cards (empty watchlist).
The card column uses
gap: 12, which previously applied between the symbol and percentage because they were separate direct children of the pressable. Symbol and price change are now wrapped in a single parentView, so they read as one block and only the intended 12px gap remains between the top row (logo + checkbox) and that text group.Test IDs and conditional rendering for the price change line are unchanged.
Reviewed by Cursor Bugbot for commit 11654db. Bugbot is set up for automated code reviews on this repo. Configure here.