From 166de1bf15bae602fec7d5dfb20bf29fc2634eac Mon Sep 17 00:00:00 2001 From: smanylov Date: Thu, 12 Feb 2026 12:38:44 +0700 Subject: [PATCH] adaptive styles for file uploads --- src/app/components/UploadSectionFile.tsx | 31 +++++++------- src/app/styles/pages-styles.scss | 53 ++++++++++++++++++++++++ src/i18n/messages/en.json | 12 +++--- src/i18n/messages/ru.json | 12 +++--- 4 files changed, 81 insertions(+), 27 deletions(-) diff --git a/src/app/components/UploadSectionFile.tsx b/src/app/components/UploadSectionFile.tsx index ec2f3ff..3ae289a 100644 --- a/src/app/components/UploadSectionFile.tsx +++ b/src/app/components/UploadSectionFile.tsx @@ -456,23 +456,24 @@ export default function UploadSectionFile({ { selectedFiles.length > 0 && (
-
+
-

- {t('total-files')}: {selectedFiles.length} | - {t('uploading')}: {uploadingCount} | - {t('completed')}: {completedCount} +

+ {t('total-files')}: {selectedFiles.length} + {t('uploading')}: {uploadingCount} + {t('completed')}: {completedCount}

- < div className="w-full bg-gray-200 rounded-full h-2.5 mt-2" > +
+ > +
- < div className="flex gap-2" > +
- < div className="space-y-4 max-h-96 overflow-y-auto" > +
{ selectedFiles.map((file, index) => (
-
+

{t('file')}: {file.name} @@ -527,9 +528,9 @@ export default function UploadSectionFile({ ) }

- < div className="flex items-center" > +
< button - className="btn btn-cancel text-sm py-1 px-3" + className="btn btn-cancel" onClick={() => handleClearFile(file.uploadId || file.name)} type="button" > @@ -559,9 +560,9 @@ export default function UploadSectionFile({ { file.status === 'pending' && ( -
+