From fc9dc836e76559e8e8deb403444c899e61eeda15 Mon Sep 17 00:00:00 2001 From: smanylov Date: Thu, 23 Apr 2026 11:42:54 +0700 Subject: [PATCH] fix violation table styles --- src/app/styles/violation-details.scss | 27 ++++-- .../violation-table/case-complaint.tsx | 68 ++++++++------- .../file-page/violation-table/case-legal.tsx | 86 +++++++++++-------- .../file-page-violation-info.tsx | 34 ++++---- 4 files changed, 122 insertions(+), 93 deletions(-) diff --git a/src/app/styles/violation-details.scss b/src/app/styles/violation-details.scss index aac4854..cfaf70a 100644 --- a/src/app/styles/violation-details.scss +++ b/src/app/styles/violation-details.scss @@ -1,12 +1,18 @@ @use './variable.scss' as v; :root { - --violation-info-indents: 32px; + --violation-info-indents: 30px; +} + +@media (max-width: 1480px) { + :root { + --violation-info-indents: 20px; + } } @media (max-width: 1240px) { :root { - --violation-info-indents: 16px; + --violation-info-indents: 15px; } } @@ -408,7 +414,7 @@ flex: 1; min-height: 0; height: 100%; - overflow: hidden; + overflow: auto; } &-grid { @@ -441,8 +447,8 @@ } &-image { - width: 300px; - height: 200px; + width: 285px; + height: 190px; position: relative; background: #f5f5f5; border-radius: 8px; @@ -467,6 +473,8 @@ justify-content: center; position: absolute; bottom: 5px; + left: 50%; + transform: translateX(-50%); .image-btn { width: 36px; @@ -917,14 +925,17 @@ } } + .note-form-section { + overflow: hidden; + margin-bottom: var(--violation-info-indents); + width: 100%; + } + .note-form-group { border: 1px solid #e9ecef; box-sizing: border-box; padding: 0px; border-radius: 8px; - margin-bottom: var(--violation-info-indents); - overflow: hidden; - width: 100%; input { display: block; diff --git a/src/app/ui/file-page/violation-table/case-complaint.tsx b/src/app/ui/file-page/violation-table/case-complaint.tsx index 3717681..b74b07c 100644 --- a/src/app/ui/file-page/violation-table/case-complaint.tsx +++ b/src/app/ui/file-page/violation-table/case-complaint.tsx @@ -87,23 +87,45 @@ export default function CaseComplaint({ selectedViolation, updateStatusHandler }
- + - + + + + {state?.errorMessage?.textArea && ( +

+ + { + state?.errorMessage?.textArea.split('&').map((e, index) => { + return ( + + {t(e)} +
+
+ ) + }) + } +

+ )}
{t('submit-violation')} - - {state?.errorMessage?.textArea && ( -

- - { - state?.errorMessage?.textArea.split('&').map((e, index) => { - return ( - - {t(e)} -
-
- ) - }) - } -

- )}
diff --git a/src/app/ui/file-page/violation-table/case-legal.tsx b/src/app/ui/file-page/violation-table/case-legal.tsx index cc3890c..fb437d3 100644 --- a/src/app/ui/file-page/violation-table/case-legal.tsx +++ b/src/app/ui/file-page/violation-table/case-legal.tsx @@ -80,20 +80,25 @@ export default function CaseViolation({ selectedViolation, updateStatusHandler } className="note-form-flex" >
- - + + + + {state?.errorMessage?.caseTitle && (

- - + + + + {state?.errorMessage?.amount && (

- + - + + {state?.errorMessage?.textArea && (

- -

- - + +
+ + +
-