|
@@ -6,7 +6,7 @@
|
|
|
import WindowMinimize from 'svelte-material-icons/WindowMinimize.svelte';
|
|
|
import type { UploadAsset } from '$lib/models/upload-asset';
|
|
|
import { notificationController, NotificationType } from './notification/notification';
|
|
|
- import { getBytesWithUnit } from '../../utils/byte-units';
|
|
|
+ import { asByteUnitString } from '$lib/utils/byte-units';
|
|
|
|
|
|
let showDetail = true;
|
|
|
|
|
@@ -116,7 +116,7 @@
|
|
|
<input
|
|
|
disabled
|
|
|
class="bg-gray-100 border w-full p-1 rounded-md text-[10px] px-2"
|
|
|
- value={`[${getBytesWithUnit(uploadAsset.file.size)}] ${uploadAsset.file.name}`}
|
|
|
+ value={`[${asByteUnitString(uploadAsset.file.size)}] ${uploadAsset.file.name}`}
|
|
|
/>
|
|
|
|
|
|
<div class="w-full bg-gray-300 h-[15px] rounded-md mt-[5px] text-white relative">
|