UBERF-9649 Fix file upload progress (#8264)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2025-03-18 22:48:10 +07:00 committed by GitHub
parent a0b7bcdf32
commit 3c0d2a9756
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@
{:else}
<ProgressCircle value={upload.progress / Math.max(upload.files.size, 1)} size={'small'} primary />
{/if}
<span>{(upload.progress / Math.max(upload.files.size, 1)).toFixed(1)}%</span>
<span>{Math.ceil(upload.progress / Math.max(upload.files.size, 1))}%</span>
</div>
<style lang="scss">

View File

@ -118,7 +118,7 @@
<Label label={uploader.status.Completed} />
{:else}
<Label label={uploader.status.Uploading} />
<span>file.progress</span>
<span>{Math.ceil(file.progress)}%</span>
{/if}
{/if}
</div>