🎨 style(tokens-table): enhance quota usage progress bar UI

Improves the “Balance” column in `TokensTable`:

• Re-styled progress bar: wider container (`w-[140px]`) and `showInfo` enabled to display percentage label.
• Added `format={() => \`\${percent}%\`}` for precise percentage feedback.
• Maintains dynamic color mapping (success / warning / danger) for clarity.

Result: clearer, more informative visual representation of remaining token quota.
This commit is contained in:
t0ng7u
2025-07-13 18:10:59 +08:00
parent 4f06a1df50
commit d1e48d02bd
3 changed files with 9 additions and 23 deletions

View File

@@ -584,7 +584,7 @@ export function renderText(text, limit) {
export function renderGroup(group) {
if (group === '') {
return (
<Tag key='default' color='orange' shape='circle'>
<Tag key='default' color='white' shape='circle'>
{i18next.t('用户分组')}
</Tag>
);