fix(ui): display exact storage capacity in the user profile (#2366)

This commit is contained in:
Huang Xin
2025-10-30 18:50:39 +08:00
committed by GitHub
parent 409c2f62be
commit 7142874513
2 changed files with 2 additions and 2 deletions
@@ -164,7 +164,7 @@ const BookDetailView: React.FC<BookDetailViewProps> = ({
<div>
<span className='font-bold'>{_('Description')}</span>
<p
className='text-neutral-content prose prose-sm text-sm'
className='text-neutral-content prose prose-sm max-w-full text-sm'
dangerouslySetInnerHTML={{
__html: metadata.description || _('No description available'),
}}
+1 -1
View File
@@ -21,7 +21,7 @@ export const useQuotaStats = (briefName = false) => {
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);