mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-24 00:21:49 +00:00
fix: display file size as base 2 (KiB instead of KB) (#2779)
This commit is contained in:
parent
d0c3aeace1
commit
cdcd9a313a
4 changed files with 10 additions and 4 deletions
6
frontend/src/utils/index.js
Normal file
6
frontend/src/utils/index.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import { partial } from "filesize";
|
||||
|
||||
/**
|
||||
* Formats filesize as KiB/MiB/...
|
||||
*/
|
||||
export const filesize = partial({ base: 2 });
|
||||
Loading…
Add table
Add a link
Reference in a new issue