ui fix on autocomple options

This commit is contained in:
Sofia Papacharalampous 2024-04-16 11:45:56 +03:00
parent dcbaf92128
commit 2f6dcb7300
2 changed files with 17 additions and 4 deletions

View File

@ -31,12 +31,12 @@
<div class="title-subtitle-fn">
<div class="title-fn">
<div class="title-fn-inner">
<span *ngIf="!_optionTemplate(item)">{{_titleFn(item)}}</span>
<span *ngIf="!_optionTemplate(item)" class="title-text">{{_titleFn(item)}}</span>
</div>
</div>
<div *ngIf="_subtitleFn(item)" class="subtitle-fn">
<div class="subtitle-fn-inner">
<small [innerHTML]="_subtitleFn(item)"></small>
<small [innerHTML]="_subtitleFn(item)" class="subtitle-text"></small>
</div>
</div>
</div>
@ -57,9 +57,9 @@
item: item
}"></ng-template>
<div *ngIf="!_optionTemplate(item) && !_optionComponent(item)">
<span>{{_titleFn(item)}}</span>
<span class="title-text">{{_titleFn(item)}}</span>
<br *ngIf="_subtitleFn(item)">
<small *ngIf="_subtitleFn(item)">{{_subtitleFn(item)}}</small>
<small *ngIf="_subtitleFn(item)" class="subtitle-text">{{_subtitleFn(item)}}</small>
<span *ngIf="popupItemActionIcon" class="option-icon" (click)="_optionActionClick(item, $event)"><mat-icon>{{popupItemActionIcon}}</mat-icon></span>
</div>
</mat-option>

View File

@ -128,3 +128,16 @@
color: transparent;
}
}
.title-text {
font-weight: 300;
line-height: 1.2em;
text-align: left;
font-size: 16px;
}
.subtitle-text {
font-weight: 400;
font-size: 14px;
line-height: 1.2em;
}