v2.0.2 — Fix unlimited monthly limit display in extra usage section
This commit is contained in:
@@ -504,12 +504,22 @@ struct ExtraUsageRow: View {
|
|||||||
.font(.system(size: 12, weight: .semibold))
|
.font(.system(size: 12, weight: .semibold))
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
Spacer()
|
Spacer()
|
||||||
Text("\(extra.currency ?? "") \(String(format: "%.2f", (extra.usedCredits ?? 0) / 100)) / \(String(format: "%.2f", (extra.monthlyLimit ?? 0) / 100))")
|
Group {
|
||||||
.font(.system(size: 11.5, weight: .medium).monospacedDigit())
|
let spent = String(format: "%.2f", (extra.usedCredits ?? 0) / 100)
|
||||||
.foregroundColor(color)
|
let currency = extra.currency ?? ""
|
||||||
|
if let limit = extra.monthlyLimit {
|
||||||
|
Text("\(currency) \(spent) / \(String(format: "%.2f", limit / 100))")
|
||||||
|
} else {
|
||||||
|
Text("\(currency) \(spent) / Unlimited")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.font(.system(size: 11.5, weight: .medium).monospacedDigit())
|
||||||
|
.foregroundColor(color)
|
||||||
|
}
|
||||||
|
if extra.monthlyLimit != nil {
|
||||||
|
ProgressBar(value: pct / 100, color: color)
|
||||||
|
.frame(height: 4)
|
||||||
}
|
}
|
||||||
ProgressBar(value: pct / 100, color: color)
|
|
||||||
.frame(height: 4)
|
|
||||||
}
|
}
|
||||||
.padding(12)
|
.padding(12)
|
||||||
.background(Color.primary.opacity(0.04))
|
.background(Color.primary.opacity(0.04))
|
||||||
|
|||||||
@@ -15,9 +15,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>2.0.1</string>
|
<string>2.0.2</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>8</string>
|
<string>9</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
<string>13.0</string>
|
<string>13.0</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
[](https://www.apple.com/macos/)
|
[](https://www.apple.com/macos/)
|
||||||
[](https://swift.org)
|
[](https://swift.org)
|
||||||
[](https://github.com/superdooper86/claudechecker/releases)
|
[](https://github.com/superdooper86/claudechecker/releases)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"url": "https://github.com/superdooper86/claudechecker/releases/download/v2.0.1/ClaudeChecker.zip",
|
"url": "https://github.com/superdooper86/claudechecker/releases/download/v2.0.2/ClaudeChecker.zip",
|
||||||
"notes": "Notification fixes."
|
"notes": "Fixed extra usage section."
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user