diff --git a/public/images/no-image.png b/public/images/no-image.png new file mode 100644 index 0000000..942404a Binary files /dev/null and b/public/images/no-image.png differ diff --git a/src/app/actions/definitions.ts b/src/app/actions/definitions.ts index c05d2ff..972eaf3 100644 --- a/src/app/actions/definitions.ts +++ b/src/app/actions/definitions.ts @@ -96,11 +96,11 @@ export const createCaseSchema = z .object({ textArea: z .string() - .min(6, { error: 'text-area-error-fill-complaint-text' }) + .min(6, { error: 'fill-text-of-the-case' }) .trim(), caseTitle: z .string() - .min(6, { error: 'text-area-error-fill-complaint-text' }) + .min(6, { error: 'fill-title-of-the-case' }) .trim(), }) diff --git a/src/app/styles/pages-styles.scss b/src/app/styles/pages-styles.scss index e0ca933..e4199d0 100644 --- a/src/app/styles/pages-styles.scss +++ b/src/app/styles/pages-styles.scss @@ -4457,9 +4457,10 @@ padding: 15px; height: calc(16vh - 12px); cursor: pointer; - display: flex; justify-content: space-between; opacity: 0.75; + display: flex; + gap: 10px; &:hover { transform: translateY(-2px); @@ -4497,10 +4498,12 @@ max-height: 80%; min-height: 50px; height: 100%; + position: relative; img { - height: 100%; + height: 100% !important; border-radius: 8px; + width: auto !important; } } @@ -4662,6 +4665,7 @@ &-image { width: 300px; height: 200px; + position: relative; img { width: 100%; @@ -4727,6 +4731,7 @@ &-case { padding: 10px; + position: relative; &:first-child { border-bottom: 1px solid rgb(226, 232, 240); @@ -4763,6 +4768,12 @@ border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } + + &-wrapper { + display: flex; + flex-direction: column; + margin-bottom: 10px; + } } .note-form-flex { @@ -4789,6 +4800,10 @@ border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } + + &::placeholder { + font-size: 12px; + } } .note-case-label { @@ -5389,6 +5404,7 @@ border-radius: 10px; box-shadow: 0 1px 2px #0000000d; color: v.$p-color; + cursor: pointer; .icon { width: 18px; @@ -5414,6 +5430,7 @@ padding: 0.25rem 0.75rem; border-radius: 10px; color: v.$p-color; + cursor: pointer; &:disabled { opacity: 0.5; 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 d787a74..0958b3b 100644 --- a/src/app/ui/file-page/violation-table/case-complaint.tsx +++ b/src/app/ui/file-page/violation-table/case-complaint.tsx @@ -143,7 +143,14 @@ export default function CaseComplaint({ selectedViolation, updateStatusHandler } if (isLoadingComplain) { return (
- Сумма ущерба + {t('amount-of-damage')} {state?.errorMessage?.amount && (
-