diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html index 606fee1a7e..ec8e9c1e4d 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html @@ -1,5 +1,5 @@ -
@if (!isCheckbox && hasLabel) { @@ -24,8 +24,7 @@ class="text-muted ds-hint" [innerHTML]="model.hint | translate" [ngClass]="getClass('element', 'hint')"> } - @if (context?.index !== null - && (!showErrorMessages || errorMessages.length === 0)) { + @if (context?.parent?.groups?.length > 1 && (!showErrorMessages || errorMessages.length === 0)) {
} @@ -99,7 +98,9 @@ } -
+ @if (context?.parent?.groups?.length > 1 && (!showErrorMessages || errorMessages.length === 0)) { +
+ } }
diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.scss b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.scss index 92aee1c159..494e405404 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.scss +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.scss @@ -15,7 +15,6 @@ appearance: none; } - :host ::ng-deep .btn-group-toggle > .btn input[type="radio"] { position: absolute; clip: rect(0,0,0,0); @@ -33,3 +32,13 @@ :host ::ng-deep .custom-control-input.is-invalid ~ .custom-control-label { color: var(--bs-form-invalid-color); } + +.invalid-feedback { + margin-top: 0; +} + +.col-form-label { + padding-top: 0; + padding-bottom: 0; + margin-bottom: 0.5rem; +} diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/existing-metadata-list-element/existing-metadata-list-element.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/existing-metadata-list-element/existing-metadata-list-element.component.html index be92b7f74c..3e2d6d2416 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/existing-metadata-list-element/existing-metadata-list-element.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/existing-metadata-list-element/existing-metadata-list-element.component.html @@ -1,5 +1,5 @@
- + @if ((metadataRepresentation$ | async) === undefined) { } diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/models/date-picker/date-picker.component.scss b/src/app/shared/form/builder/ds-dynamic-form-ui/models/date-picker/date-picker.component.scss index e8a63ce135..e02f9d8879 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/models/date-picker/date-picker.component.scss +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/models/date-picker/date-picker.component.scss @@ -4,6 +4,7 @@ legend { font-size: initial; + margin-bottom: 0; /* Changed from Bootstrap 5's legend to ensure that the date issues label is on a different line as it's input */ float: none;