v2.0.3 — Clean up extra usage display, remove non-existent balance field

This commit is contained in:
superdooper86
2026-05-07 13:56:31 +02:00
parent 3199b228a8
commit ccf3468621
5 changed files with 12 additions and 21 deletions
+2 -5
View File
@@ -511,11 +511,8 @@ struct ExtraUsageRow: View {
.foregroundColor(.secondary)
}
VStack(spacing: 4) {
ExtraUsageLine(label: "Spent", value: "\(cur) \(fmt(extra.usedCredits))", color: color)
ExtraUsageLine(label: "Limit", value: extra.monthlyLimit != nil ? "\(cur) \(fmt(extra.monthlyLimit))" : "Unlimited", color: .secondary)
if extra.currentBalance != nil {
ExtraUsageLine(label: "Balance", value: "\(cur) \(fmt(extra.currentBalance))", color: .primary)
}
ExtraUsageLine(label: "Spent", value: "\(cur) \(fmt(extra.usedCredits))", color: color)
ExtraUsageLine(label: "Limit", value: extra.monthlyLimit != nil ? "\(cur) \(fmt(extra.monthlyLimit))" : "Unlimited", color: .secondary)
}
if extra.monthlyLimit != nil {
ProgressBar(value: pct / 100, color: color)