From e1415450357da41a33b89cda2f589908456c0e9a Mon Sep 17 00:00:00 2001 From: smanylov Date: Fri, 10 Apr 2026 12:17:50 +0700 Subject: [PATCH] remove loading procent while error, add circle progres bar --- package.json | 2 +- src/app/components/UploadSectionFile.tsx | 35 ++++++++++++++++------ src/app/styles/pages-styles.scss | 37 +++++++++++++++++++++++- 3 files changed, 63 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 62799b1..40d7cbf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "no-copy-frontend", - "version": "0.84.0", + "version": "0.85.0", "private": true, "scripts": { "dev": "next dev -p 2999", diff --git a/src/app/components/UploadSectionFile.tsx b/src/app/components/UploadSectionFile.tsx index f3ab5e8..75e67d3 100644 --- a/src/app/components/UploadSectionFile.tsx +++ b/src/app/components/UploadSectionFile.tsx @@ -602,15 +602,32 @@ export default function UploadSectionFile({ ) } -
- - {file.progress} % - +
+ {file.status !== 'error' && ( +
+ + + + + {file.progress}% +
+ )} < button className="btn btn-cancel" onClick={() => handleClearFile(file.uploadId || file.name)} diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index 77f16d9..3000849 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -521,7 +521,7 @@ gap: 8px; } - .upload-progress { +/* .upload-progress { font-weight: 500; font-size: 18px; margin-right: 16px; @@ -529,6 +529,41 @@ @media (max-width: 500px) { margin-right: 0px; } + } */ + + .upload-progress-circle { + position: relative; + width: 40px; + height: 40px; + margin-right: 16px; + + @media (max-width: 500px) { + margin-right: 0px; + } + } + + .circular-chart { + width: 100%; + height: 100%; + transform: rotate(-90deg); + } + + .circle-bg { + stroke: #e5e7eb; + } + + .circle { + transition: stroke-dasharray 0.3s ease; + } + + .circle-percentage { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + font-size: 10px; + font-weight: 600; + color: #374151; } }