AAE-24675 Fix text alignment in dateitem card view element (#10024)

* AAE-24675 Fix text alignment in dateitem card view element

* AAE-24675 Break words in checkbox and radio button labels to avoid overflow
This commit is contained in:
Wojciech Duda 2024-08-02 13:51:23 +02:00 committed by GitHub
parent 394d064f37
commit d2b0fab677
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 10 additions and 4 deletions

View File

@ -12,7 +12,6 @@
&.adf-property-value-editable {
display: flex;
align-items: center;
justify-content: flex-end;
border-radius: 6px;
border-bottom: inherit;
margin-bottom: 18px;

View File

@ -2,6 +2,7 @@
[class.adf-invalid]="!field.isValid && isTouched()">
<mat-checkbox [id]="field.id"
color="primary"
class="adf-checkbox"
[required]="isRequired()"
[disabled]="field.readOnly || readOnly"
[(ngModel)]="field.value"

View File

@ -30,6 +30,13 @@ import { WidgetComponent } from '../widget.component';
selector: 'checkbox-widget',
standalone: true,
templateUrl: './checkbox.widget.html',
styles: [
`
.adf-checkbox {
word-break: break-word;
}
`
],
host: {
'(click)': 'event($event)',
'(blur)': 'event($event)',

View File

@ -43,9 +43,8 @@
margin: 5px;
label {
span {
white-space: normal;
}
white-space: normal;
word-break: break-word;
}
}