fix: truncate long account names in Deposit AccountSelector#25715
fix: truncate long account names in Deposit AccountSelector#25715
Conversation
Add flexShrink to AccountSelector container and text to enable proper middle ellipsis truncation for long account names, matching the behavior of the Aggregator AccountSelector component.
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
This is a minor layout fix to prevent text overflow in the account selector within the Ramp Deposit BuildQuote view. The changes:
SmokeRamps is the appropriate tag as it covers fiat on-ramp (buy crypto) features, which includes the Deposit flow where this AccountSelector component is used. Performance Test Selection: |
|



Description
The Deposit
AccountSelectorcomponent does not properly truncate long account names, causing text to overflow horizontally and get cut off at screen edges. This differs from the AggregatorAccountSelectorwhich correctly truncates with middle ellipsis.Root Cause
The Deposit
AccountSelectorwas missingflexShrink: 1on both the container and text elements. Without this property:numberOfLines={1}andellipsizeMode="middle"cannot work because the text width is unconstrainedSolution
Added
flexShrink: 1to match the AggregatorAccountSelectorpattern:flexShrink: 1to theselectorstyleaccountTextstyle withflexShrink: 1accountTextstyle to the Text componentChangelog
CHANGELOG entry: Fixed long account names overflowing in the Deposit Buy screen by enabling proper text truncation
Related issues
Refs: N/A (discovered during UI review)
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Small, isolated styling change to a UI component; primary risk is minor layout regression across devices/themes.
Overview
Fixes an overflow issue in the Deposit ramp
AccountSelectorwhere long account names could push the selector pill beyond screen bounds instead of truncating.Adds
flexShrink: 1to the selector container and applies a newaccountTextstyle (alsoflexShrink: 1) to enablenumberOfLines={1}+ middle ellipsis to work reliably; updates theBuildQuotesnapshot accordingly.Written by Cursor Bugbot for commit f13c5a1. This will update automatically on new commits. Configure here.