fix: webui formatDirSize (#568)
parent
09200860b4
commit
59685da06e
|
@ -881,8 +881,8 @@ function padZero(value, size) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function formatDirSize(size) {
|
function formatDirSize(size) {
|
||||||
const unit = file.size === 1 ? "item" : "items";
|
const unit = size === 1 ? "item" : "items";
|
||||||
const num = size >= MAX_SUBPATHS_COUNT ? `>${MAX_SUBPATHS_COUNT - 1}` : `${file.size}`;
|
const num = size >= MAX_SUBPATHS_COUNT ? `>${MAX_SUBPATHS_COUNT - 1}` : `${size}`;
|
||||||
return ` ${num} ${unit}`;
|
return ` ${num} ${unit}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue