next-helios-fe 1.8.91 → 1.8.92
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -211,9 +211,11 @@ export const File: React.FC<FileProps> = ({
|
|
211
211
|
}`}
|
212
212
|
/>
|
213
213
|
</div>
|
214
|
-
<div className="flex flex-col gap-2 items-center">
|
214
|
+
<div className="flex flex-col gap-2 items-center w-full">
|
215
215
|
{tempFile.length !== 0 ? (
|
216
|
-
<span>
|
216
|
+
<span className="w-full text-center truncate whitespace-nowrap">
|
217
|
+
{tempFile[0]?.name}
|
218
|
+
</span>
|
217
219
|
) : (
|
218
220
|
<div className="flex gap-2 text-disabled">
|
219
221
|
<span className="underline underline-offset-2">
|
@@ -231,8 +233,8 @@ export const File: React.FC<FileProps> = ({
|
|
231
233
|
{tempFile.length !== 0
|
232
234
|
? `${
|
233
235
|
tempFile[0]?.size < 1000000
|
234
|
-
? `${tempFile[0]?.size / 1000} KB`
|
235
|
-
: `${tempFile[0]?.size / 1000000} MB`
|
236
|
+
? `${(tempFile[0]?.size / 1000).toFixed(2)} KB`
|
237
|
+
: `${(tempFile[0]?.size / 1000000).toFixed(2)} MB`
|
236
238
|
}`
|
237
239
|
: `Maximum file size ${options?.maxSizeInMb} MB`}
|
238
240
|
</span>
|