mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-27 20:28:37 +00:00
✨ style(Account UX): resilient binding layout, copyable popovers, pastel header, and custom pay colors
- AccountManagement.js - Prevent action button from shifting when account IDs are long by adding gap, min-w-0, and flex-shrink-0; keep buttons in a fixed position. - Add copyable Popover for account identifiers (email/GitHub/OIDC/Telegram/LinuxDO) using Typography.Paragraph with copyable; reveal full text on hover. - Ensure ellipsis works by rendering the popover trigger as `block max-w-full truncate`. - Import Popover and wire up `renderAccountInfo` across all binding rows. - UserInfoHeader.js - Apply unified `with-pastel-balls` background to match PricingVendorIntro. - Remove legacy absolute-positioned circles and top gradient bar to avoid visual overlap. - RechargeCard.jsx - Colorize non-Alipay/WeChat/Stripe payment icons using backend `pay_methods[].color`; fallback to `var(--semi-color-text-2)`. - Add `showClear` to the redemption code input for quicker clearing. Notes: - No linter errors introduced. - i18n strings and behavior remain unchanged except for improved UX and visual consistency.
This commit is contained in:
@@ -54,7 +54,7 @@ const InvitationCard = ({
|
||||
{/* 收益展示区域 */}
|
||||
<div className='space-y-4'>
|
||||
{/* 主要收益卡片 - 待使用收益 */}
|
||||
<Card className='!rounded-xl bg-slate-50 dark:bg-slate-800'>
|
||||
<Card className='!rounded-xl with-pastel-balls'>
|
||||
<div className='flex justify-between items-center mb-3'>
|
||||
<div className="flex items-center">
|
||||
<TrendingUp size={16} className="mr-2 text-slate-600 dark:text-slate-300" />
|
||||
@@ -75,7 +75,6 @@ const InvitationCard = ({
|
||||
<div className='text-2xl sm:text-3xl font-bold text-slate-900 dark:text-slate-100 mb-1'>
|
||||
{renderQuota(userState?.user?.aff_quota || 0)}
|
||||
</div>
|
||||
<div className="text-xs text-slate-500 dark:text-slate-400">{t('可随时划转到账户余额')}</div>
|
||||
</Card>
|
||||
|
||||
{/* 统计数据网格 */}
|
||||
@@ -88,7 +87,6 @@ const InvitationCard = ({
|
||||
<div className='text-xl font-semibold text-slate-900 dark:text-slate-100'>
|
||||
{renderQuota(userState?.user?.aff_history_quota || 0)}
|
||||
</div>
|
||||
<div className="text-xs text-slate-500 dark:text-slate-400 mt-1">{t('累计获得')}</div>
|
||||
</Card>
|
||||
|
||||
<Card className='!rounded-xl bg-slate-50 dark:bg-slate-800'>
|
||||
@@ -99,7 +97,6 @@ const InvitationCard = ({
|
||||
<div className='text-xl font-semibold text-slate-900 dark:text-slate-100 flex items-center'>
|
||||
{userState?.user?.aff_count || 0} {t('人')}
|
||||
</div>
|
||||
<div className="text-xs text-slate-500 dark:text-slate-400 mt-1">{t('成功邀请')}</div>
|
||||
</Card>
|
||||
</div>
|
||||
|
||||
@@ -126,7 +123,7 @@ const InvitationCard = ({
|
||||
|
||||
{/* 奖励说明 */}
|
||||
<Card
|
||||
className='!rounded-xl'
|
||||
className='!rounded-xl with-pastel-balls-warm'
|
||||
title={
|
||||
<Text strong className='text-slate-700'>
|
||||
{t('奖励说明')}
|
||||
|
||||
Reference in New Issue
Block a user