mirror of
https://github.com/cyclotruc/gitingest.git
synced 2026-04-28 12:49:29 +00:00
fix(ui): use proper decimal prefixes (kB / MB) in file-size selector (#294)
This commit is contained in:
parent
52966287c4
commit
327958eae8
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue