Skip to content

fix: keep buy-credits custom amount label on one line - #96

Merged
suguanYang merged 1 commit into
mainfrom
fix/suguanYang/buy-credits-custom-nowrap
Aug 19, 2026
Merged

fix: keep buy-credits custom amount label on one line#96
suguanYang merged 1 commit into
mainfrom
fix/suguanYang/buy-credits-custom-nowrap

Conversation

@suguanYang

Copy link
Copy Markdown
Contributor

Summary

  • The custom amount chip in the buy-credits modal used a fixed 72px width, so localized labels like 自定义 wrapped vertically.
  • Allow the chip to grow past 72px, keep the label on one line, and stop the last option from shrinking in the row.

Test plan

  • Open the dashboard buy-credits modal in Chinese and confirm 自定义 renders on a single line next to $20 / $50 / $100 / $500.
  • Switch to English and confirm Custom still fits on one line.
  • Select a preset amount and the custom option; confirm selection styling and the custom amount input still work.

Made with Cursor

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Aug 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
knowhere-dashboard-staging Error Error Aug 19, 2026 8:03am

Request Review

@suguanYang
suguanYang merged commit 2e93660 into main Aug 19, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant