MOBILE-4291 AddonUserProfile: Display full text in checkbox label

main
Alfonso Salces 2023-03-23 14:56:54 +01:00
parent d2e34e3d87
commit 5967d44aef
3 changed files with 11 additions and 1 deletions

View File

@ -14,7 +14,7 @@
<!-- Edit. -->
<ion-item *ngIf="edit && field && field.shortname && form" [formGroup]="form">
<ion-label>
<span [core-mark-required]="required">{{ field.name }}</span>
<span class="label-text" [core-mark-required]="required">{{ field.name }}</span>
<core-input-errors [control]="form.controls[modelName]"></core-input-errors>
</ion-label>
<ion-checkbox item-end [formControlName]="modelName">

View File

@ -0,0 +1,9 @@
:host {
--text-overflow: initial;
--white-space: normal;
.label-text {
text-overflow: var(--text-overflow);
white-space: var(--white-space);
}
}

View File

@ -25,6 +25,7 @@ import { CoreUtils } from '@services/utils/utils';
@Component({
selector: 'addon-user-profile-field-checkbox',
templateUrl: 'addon-user-profile-field-checkbox.html',
styleUrls: ['./checkbox.scss'],
})
export class AddonUserProfileFieldCheckboxComponent extends CoreUserProfileFieldBaseComponent {