mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-04-17 21:37:26 +00:00
Summary • Re-architect the status column to embed quota information directly inside the Tag suffix. • Consolidate rendering logic for clearer structure and easier maintenance. Details • Moved the quota Progress bar under the remaining / total text, inside `quotaSuffix`. • Added “Unlimited” label for tokens with `unlimited_quota`; hides Progress and Tooltip in this case. • Tightened vertical spacing with a flex container (`gap-[2px]`, `leading-none`) and removed extra wrappers; Progress now has zero top/bottom margin and full-width style. • Refactored variables: – Replaced `tagNode/bodyContent` with a single `content` node. – Wrapped `content` with Tooltip only when quota is limited. • Visual tweaks: – Applied `size='large'` to the Tag for better alignment. – Ensured consistent color via shared `getProgressColor`. • Deleted obsolete comments and redundant code. Result Improves readability of the component and delivers a cleaner, more compact quota display.