Skip to content

Commit fe366de

Browse files
authored
Add Rounding to Quota View (#224)
Because 55.00000000001 displays as that exactly!
1 parent f34696e commit fe366de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

charts/ui/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ description: A Helm chart for deploying Unikorn UI
44

55
type: application
66

7-
version: v1.0.0
8-
appVersion: v1.0.0
7+
version: v1.1.0-rc1
8+
appVersion: v1.1.0-rc1
99

1010
icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png
1111

src/routes/(shell)/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<div class="flex items-center gap-4">
3232
<!-- the default is to treat the value as a pencentage -->
3333
<ProgressRing
34-
value={quota.quantity <= 0 ? 0 : (quota.used / quota.quantity) * 100}
34+
value={Math.round(quota.quantity <= 0 ? 0 : (quota.used / quota.quantity) * 100)}
3535
showLabel
3636
trackStroke="stroke-primary-500/20"
3737
strokeWidth="0.75rem"

0 commit comments

Comments
 (0)