Browse Source

Merge pull request #12048 from maxunbearable/fix/4948-assignee-select-icons

Fixed icons view in assignee select
pull/12065/head
Andrew Shvayka 2 years ago
committed by GitHub
parent
commit
484ce0857f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 6
      ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-select.component.html
  2. 2
      ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.scss

6
ui-ngx/src/app/modules/home/components/alarm/alarm-assignee-select.component.html

@ -21,11 +21,11 @@
subscriptSizing="dynamic" [appearance]="inline ? 'outline' : 'fill'">
<mat-label *ngIf="!inline" translate>alarm.assignee</mat-label>
<input matInput readonly formControlName="assignee">
<span *ngIf="assignee" matPrefix class="user-avatar" [class.inline]="inline"
<span *ngIf="assignee" matPrefix class="user-avatar" [class.inline-icon]="inline"
[style.background-color]="getAvatarBgColor()">
{{ getUserInitials() }}
</span>
<mat-icon *ngIf="!assignee" matPrefix class="unassigned-icon" [class.inline]="inline">account_circle</mat-icon>
<mat-icon *ngIf="!disabled" matSuffix class="drop-down-icon" [class.inline]="inline">arrow_drop_down</mat-icon>
<mat-icon *ngIf="!assignee" matPrefix class="unassigned-icon" [class.inline-icon]="inline">account_circle</mat-icon>
<mat-icon *ngIf="!disabled" matSuffix>arrow_drop_down</mat-icon>
</mat-form-field>
</ng-container>

2
ui-ngx/src/app/modules/home/components/alarm/alarm-assignee.component.scss

@ -39,7 +39,7 @@
height: 28px;
margin-left: 12px;
margin-right: 20px;
&.inline {
&.inline-icon {
margin-left: 0;
margin-right: 8px;
}

Loading…
Cancel
Save