From 71428745132ec1d6f5aa5fd13f3f8572feffc623 Mon Sep 17 00:00:00 2001 From: Huang Xin Date: Thu, 30 Oct 2025 18:50:39 +0800 Subject: [PATCH] fix(ui): display exact storage capacity in the user profile (#2366) --- apps/readest-app/src/components/metadata/BookDetailView.tsx | 2 +- apps/readest-app/src/hooks/useQuotaStats.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/readest-app/src/components/metadata/BookDetailView.tsx b/apps/readest-app/src/components/metadata/BookDetailView.tsx index fc7b729a..3707e7d1 100644 --- a/apps/readest-app/src/components/metadata/BookDetailView.tsx +++ b/apps/readest-app/src/components/metadata/BookDetailView.tsx @@ -164,7 +164,7 @@ const BookDetailView: React.FC = ({
{_('Description')}

{ percentage: Math.round((storagPlan.usage / storagPlan.quota) * 100), }), used: parseFloat((storagPlan.usage / 1024 / 1024 / (inGB ? 1024 : 1)).toFixed(2)), - total: Math.round(storagPlan.quota / 1024 / 1024 / (inGB ? 1024 : 1)), + total: Math.round((storagPlan.quota / 1024 / 1024 / (inGB ? 1024 : 1)) * 10) / 10, unit: inGB ? 'GB' : 'MB', }; const translationPlan = getTranslationPlanData(token);