Recent Media list: Round file sizes
This commit is contained in:
parent
b50b14a825
commit
928bfcc221
1 changed files with 3 additions and 1 deletions
|
@ -52,7 +52,9 @@ export class DocumentListItem extends React.Component<Props> {
|
|||
{fileName}
|
||||
</span>
|
||||
<span className="module-document-list-item__file-size">
|
||||
{typeof fileSize === 'number' ? formatFileSize(fileSize) : ''}
|
||||
{typeof fileSize === 'number'
|
||||
? formatFileSize(fileSize, { round: 0 })
|
||||
: ''}
|
||||
</span>
|
||||
</div>
|
||||
<div className="module-document-list-item__date">
|
||||
|
|
Loading…
Add table
Reference in a new issue