FileAPI BugFix

This commit is contained in:
2021-01-13 15:26:30 +01:00
parent e19b4d1a46
commit 48a3932451
4 changed files with 15 additions and 13 deletions

View File

@@ -96,7 +96,11 @@ export class FileBrowser extends React.Component {
size /= 1024.0;
}
return size.toFixed(1) + " " + suffixes[i];
if (i === 0 || Math.round(size) === size) {
return size + " " + suffixes[i];
} else {
return size.toFixed(1) + " " + suffixes[i];
}
}
canUpload() {