Recent Media list: Round file sizes

This commit is contained in:
Josh Perez 2020-10-21 19:54:53 -04:00 committed by Evan Hahn
parent b50b14a825
commit 928bfcc221

View file

@ -52,7 +52,9 @@ export class DocumentListItem extends React.Component<Props> {
{fileName} {fileName}
</span> </span>
<span className="module-document-list-item__file-size"> <span className="module-document-list-item__file-size">
{typeof fileSize === 'number' ? formatFileSize(fileSize) : ''} {typeof fileSize === 'number'
? formatFileSize(fileSize, { round: 0 })
: ''}
</span> </span>
</div> </div>
<div className="module-document-list-item__date"> <div className="module-document-list-item__date">