fix: group mobile trade tabs to prevent overflow in translated locales#11973
fix: group mobile trade tabs to prevent overflow in translated locales#119730xApotheosis merged 3 commits intodevelopfrom
Conversation
The mobile trade page header showed all 5 tab options (Swap, Limit, Buy, Sell, Earn) as individual pills, which overflowed off-screen in languages with longer labels (German, French, etc.). This adopts the same grouping strategy already used on desktop: 3 pills (Swap, Buy/Sell, Earn) with dropdown toggles for sub-options (Market/Limit, Buy/Sell). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…top toggle buttons Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Description
The mobile trade page header showed all 5 tab options (Swap, Limit, Buy, Sell, Earn) as individual pill buttons in a single horizontal row. In languages with longer labels (German, French, etc.), these overflowed off both edges of the screen.
This adopts the same grouping strategy already used on desktop: 3 pills (Swap, Buy/Sell, Earn) with dropdown toggles for sub-options (Market/Limit, Buy/Sell).
Issue (if applicable)
closes #SS-5535
Risk
Low risk — UI-only change scoped to mobile viewport. No new state, callbacks, or business logic introduced. Reuses existing toggle handlers and labels already defined in the component.
None. This is a pure UI layout change.
Testing
Engineering
Operations
Screenshots (if applicable)
https://jam.dev/c/76b60627-67a4-48f4-b747-edc034f88912