fix(web): oauth quota display (#19417)

* fix(web): oauth quota display

* fix(web): oauth quota display
This commit is contained in:
Daimolean 2025-06-23 23:00:41 +08:00 committed by GitHub
parent 6a309129b7
commit ce14324c97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,12 +113,12 @@
>
<td class="w-1/4 text-ellipsis px-2 text-sm">
{getByteUnitString(user.usage, $locale, 0)}
{#if user.quotaSizeInBytes}
{#if user.quotaSizeInBytes !== null}
/ {getByteUnitString(user.quotaSizeInBytes, $locale, 0)}
{/if}
<span class="text-immich-primary dark:text-immich-dark-primary">
{#if user.quotaSizeInBytes}
({(user.usage / user.quotaSizeInBytes).toLocaleString($locale, {
{#if user.quotaSizeInBytes !== null && user.quotaSizeInBytes >= 0}
({(user.quotaSizeInBytes === 0 ? 1 : user.usage / user.quotaSizeInBytes).toLocaleString($locale, {
style: 'percent',
maximumFractionDigits: 0,
})})