From 41f1411f47d55b116d1d1adab8fc664c3c9109e6 Mon Sep 17 00:00:00 2001 From: jwnasambu Date: Mon, 12 Aug 2024 12:27:09 +0300 Subject: [PATCH] Notification error should be below --- src/results/result-form-field.component.tsx | 23 +++++++++++---------- src/results/result-form.scss | 5 ++++- 2 files changed, 16 insertions(+), 12 deletions(-) diff --git a/src/results/result-form-field.component.tsx b/src/results/result-form-field.component.tsx index 5b89c2da..ffdcc651 100644 --- a/src/results/result-form-field.component.tsx +++ b/src/results/result-form-field.component.tsx @@ -51,17 +51,6 @@ const ResultFormField: React.FC = ({ return ( <> - {Object.keys(errors).length > 0 && ( - - )} {isTextOrNumeric(concept) && ( = ({ ); } })} + + {Object.keys(errors).length > 0 && ( + + )} ); }; diff --git a/src/results/result-form.scss b/src/results/result-form.scss index 3adf0f33..d9c437d5 100644 --- a/src/results/result-form.scss +++ b/src/results/result-form.scss @@ -33,11 +33,14 @@ margin-top: auto; } +.emptyFormError { + margin-top: 10px; +} + .form { display: flex; flex-direction: column; justify-content: space-between; - height: calc(100vh - 6rem); } :global(.omrs-breakpoint-lt-desktop) .form {