fix(ui): display exact storage capacity in the user profile (#2366)
This commit is contained in:
@@ -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'),
|
||||
}}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user