mirror of
https://github.com/outline/outline.git
synced 2026-11-22 05:51:43 +03:00
* Fix file size display to use binary units instead of decimal - Update bytesToHumanReadable function to use 1024-based units (KB, MB, GB) - This matches user expectations from operating systems like Windows - Fixes issue where 87.2MB file was displayed as 91.53MB - Update unit tests to reflect binary unit calculations - Resolves GitHub issue #10085 Co-authored-by: Tom Moor <tom@getoutline.com> * Make file size display platform-aware - Use decimal units (base 1000) on macOS to match Finder behavior - Use binary units (base 1024) on Windows to match Explorer behavior - Import isMac utility from shared/utils/browser - Update comprehensive tests for both platforms - Resolves platform-specific file size display discrepancies Co-authored-by: Tom Moor <tom@getoutline.com> --------- Co-authored-by: codegen-sh[bot] <131295404+codegen-sh[bot]@users.noreply.github.com> Co-authored-by: Tom Moor <tom@getoutline.com>