mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
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:
parent
394d064f37
commit
d2b0fab677
@ -12,7 +12,6 @@
|
|||||||
&.adf-property-value-editable {
|
&.adf-property-value-editable {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border-bottom: inherit;
|
border-bottom: inherit;
|
||||||
margin-bottom: 18px;
|
margin-bottom: 18px;
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
[class.adf-invalid]="!field.isValid && isTouched()">
|
[class.adf-invalid]="!field.isValid && isTouched()">
|
||||||
<mat-checkbox [id]="field.id"
|
<mat-checkbox [id]="field.id"
|
||||||
color="primary"
|
color="primary"
|
||||||
|
class="adf-checkbox"
|
||||||
[required]="isRequired()"
|
[required]="isRequired()"
|
||||||
[disabled]="field.readOnly || readOnly"
|
[disabled]="field.readOnly || readOnly"
|
||||||
[(ngModel)]="field.value"
|
[(ngModel)]="field.value"
|
||||||
|
@ -30,6 +30,13 @@ import { WidgetComponent } from '../widget.component';
|
|||||||
selector: 'checkbox-widget',
|
selector: 'checkbox-widget',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
templateUrl: './checkbox.widget.html',
|
templateUrl: './checkbox.widget.html',
|
||||||
|
styles: [
|
||||||
|
`
|
||||||
|
.adf-checkbox {
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
`
|
||||||
|
],
|
||||||
host: {
|
host: {
|
||||||
'(click)': 'event($event)',
|
'(click)': 'event($event)',
|
||||||
'(blur)': 'event($event)',
|
'(blur)': 'event($event)',
|
||||||
|
@ -43,9 +43,8 @@
|
|||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
|
||||||
label {
|
label {
|
||||||
span {
|
white-space: normal;
|
||||||
white-space: normal;
|
word-break: break-word;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user