fix(ramps): prevent country name overflow in v2 native address form#26740
Conversation
Long country names like "United States of America" were wrapping to
multiple lines in the half-width country field. Add numberOfLines={1}
so the text stays on a single line and clips horizontally instead.
|
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: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
The committed fixture schema is out of date. To update, comment: |
Description
Long country names like "United States of America" were wrapping to multiple lines inside the half-width country field on the Enter Address screen, causing a visual overflow as seen in the screenshot.
The fix adds `numberOfLines={1}` to the country `DepositTextField`, which constrains the text to a single line and lets it clip/scroll horizontally instead of wrapping.
Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/TRAM-2885?atlOrigin=eyJpIjoiODEyMTFjOWM1MmY0NGMxNzlkZjBhOTZhMmJjYjY4ODgiLCJwIjoiaiJ9
Manual testing steps
Screenshots/Recordings
Before
"United States of America" wrapped to two lines inside the narrow country field.
After
Text stays on one line, clipping at the field boundary.

Pre-merge author checklist
Pre-merge reviewer checklist
Note
Low Risk
Low risk UI-only change: constrains the disabled country
DepositTextFieldto a single line to avoid layout overflow; no business logic or data handling changes.Overview
Prevents long country names from wrapping/overflowing in the v2 ramps native
EnterAddressscreen by settingnumberOfLines={1}on the disabled countryDepositTextField, keeping the half-width field visually stable.Written by Cursor Bugbot for commit 10866b1. This will update automatically on new commits. Configure here.