fix(ui): use proper decimal prefixes (kB / MB) in file-size selector (#294)

This commit is contained in:
Filip Christiansen 2025-06-22 09:56:04 +02:00 committed by GitHub
parent 52966287c4
commit 327958eae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -179,9 +179,9 @@ function initializeSlider() {
// Add helper function for formatting size
function formatSize(sizeInKB) {
if (sizeInKB >= 1024) {
return Math.round(sizeInKB / 1024) + 'mb';
return Math.round(sizeInKB / 1024) + 'MB';
}
return Math.round(sizeInKB) + 'kb';
return Math.round(sizeInKB) + 'kB';
}
// Initialize slider on page load