mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
Merge branch 'w2p-127705_cleanup-input-form-spacing' into w2p-127705_cleanup-input-form-spacing_contribute-main
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<div [class.mb-3]="(model.type !== 'GROUP' && asBootstrapFormGroup) || getClass('element', 'container').includes('mb-3')"
|
||||
<div [class.mb-2]="hasLabel || model.type === 'DATE' || (model.type !== 'GROUP' && asBootstrapFormGroup) || getClass('element', 'container').includes('mb-2')"
|
||||
[class.d-none]="model.hidden"
|
||||
[formGroup]="group"
|
||||
[ngClass]="[getClass('element', 'container'), getClass('grid', 'container')]">
|
||||
@@ -24,8 +24,7 @@
|
||||
class="text-muted ds-hint" [innerHTML]="model.hint | translate" [ngClass]="getClass('element', 'hint')"></small>
|
||||
}
|
||||
<!-- In case of repeatable fields show empty space for all elements except the first -->
|
||||
@if (context?.index !== null
|
||||
&& (!showErrorMessages || errorMessages.length === 0)) {
|
||||
@if (context?.parent?.groups?.length > 1 && (!showErrorMessages || errorMessages.length === 0)) {
|
||||
<div class="clearfix w-100 mb-2"></div>
|
||||
}
|
||||
|
||||
@@ -99,7 +98,9 @@
|
||||
<small
|
||||
class="text-muted ds-hint" [innerHTML]="model.hint | translate" [ngClass]="getClass('element', 'hint')"></small>
|
||||
}
|
||||
@if (context?.parent?.groups?.length > 1 && (!showErrorMessages || errorMessages.length === 0)) {
|
||||
<div class="clearfix w-100 mb-2"></div>
|
||||
}
|
||||
}
|
||||
<ng-content></ng-content>
|
||||
</div>
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<div class="d-flex">
|
||||
<span class="me-auto text-contents">
|
||||
<span class="me-auto text-contents align-self-center">
|
||||
@if ((metadataRepresentation$ | async) === undefined) {
|
||||
<ds-loading [showMessage]="false"></ds-loading>
|
||||
}
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user