diff --git a/src/components/AuthFileQuotaPanel.tsx b/src/components/AuthFileQuotaPanel.tsx index d058bc4..3bc01aa 100644 --- a/src/components/AuthFileQuotaPanel.tsx +++ b/src/components/AuthFileQuotaPanel.tsx @@ -24,12 +24,10 @@ export function AuthFileQuotaPanel({ quota, file, disabled, onRefresh, onReset, const compactLayout = compact || dense; const fileDisabled = readBoolean(file, 'disabled'); const showReset = Boolean(onReset && ((quota.resetCredits ?? 0) > 0 || hasPendingClaudeReset(file))); - const resetCreditsLabel = quota.resetCredits !== undefined ? t('authFiles.quota.resets', { count: quota.resetCredits }) : ''; const accountCreditsLabel = quota.creditsUnlimited ? t('quota.creditUnlimited') : quota.creditBalance !== undefined ? quota.creditBalance : ''; const denseMetadata = dense ? [ - quota.resetCreditsApplicable !== undefined ? t('quota.resetApplicable', { count: quota.resetCreditsApplicable }) : '', quota.subscriptionActiveUntil ? t('quota.subscriptionExpiry', { time: formatQuotaTimestamp(quota.subscriptionActiveUntil, locale) }) : '', accountCreditsLabel ? t('quota.creditBalance') + ': ' + accountCreditsLabel : '', ].filter(Boolean).join(' · ') : ''; @@ -52,10 +50,9 @@ export function AuthFileQuotaPanel({ quota, file, disabled, onRefresh, onReset, }; return (
- {!compactLayout || showReset || (dense && resetCreditsLabel) ?
+ {!compactLayout || showReset ?
{!compactLayout ? {t('authFiles.settings.quotaRemaining')} : null} {!compactLayout && quota.plan ? {quota.plan} : null} - {dense && resetCreditsLabel ? {resetCreditsLabel} : null} {showReset ? : null} {!compactLayout ?