mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-19 15:23:36 +00:00
* fix(ui): show 1 MB instead of 1024 KB in formatBytes * refactor(ui): compute the scaled size once in formatBytes Move the repeated scaling expression into a small helper, so the unit bump only changes the index and the value is derived from it. The output is unchanged for every input. The GB test case now uses 1024^3 - 1 instead of an arbitrary offset. --------- Co-authored-by: Deluan <deluan@navidrome.org>