diff --git a/changelog/unreleased/bugfix-limit-relative-user-quota-two-decimals b/changelog/unreleased/bugfix-limit-relative-user-quota-two-decimals new file mode 100644 index 00000000000..60ddbf44fbd --- /dev/null +++ b/changelog/unreleased/bugfix-limit-relative-user-quota-two-decimals @@ -0,0 +1,7 @@ +Bugfix: Relative user quota display limited to two decimals + +If the relative user quota is being reported too precisely from the backend, there was a chance of small display issue. +This has been resolved by limiting the number of decimals that get displayed for the relative quota to two. + +https://github.com/owncloud/web/issues/9259 +https://github.com/owncloud/web/pull/9369 diff --git a/packages/web-runtime/src/components/Topbar/UserMenu.vue b/packages/web-runtime/src/components/Topbar/UserMenu.vue index c919400f602..07ab76992fa 100644 --- a/packages/web-runtime/src/components/Topbar/UserMenu.vue +++ b/packages/web-runtime/src/components/Topbar/UserMenu.vue @@ -210,7 +210,7 @@ export default defineComponent({ }, quotaUsagePercent() { return this.useLegacyQuota - ? this.quota.relative + ? parseFloat(this.quota.relative.toFixed(2)) : parseFloat(((this.quota.used / this.quota.total) * 100).toFixed(2)) },