fix(mac): show cached context usage

This commit is contained in:
Peter Steinberger
2025-12-12 23:44:49 +00:00
parent 8846ffec64
commit 072ad8d371
4 changed files with 70 additions and 3 deletions

View File

@@ -31,9 +31,10 @@ struct ContextUsageBar: View {
.fill(Color.secondary.opacity(0.25))
Capsule()
.fill(self.tint)
.frame(width: fillWidth)
.frame(width: max(1, fillWidth))
}
}
.frame(maxWidth: .infinity)
.frame(height: self.height)
.accessibilityLabel("Context usage")
.accessibilityValue(self.accessibilityValue)
@@ -46,4 +47,3 @@ struct ContextUsageBar: View {
return "\(pct) percent used"
}
}