enriched autocomplete options with data

This commit is contained in:
2026-07-06 23:21:36 +02:00
parent 52e70a5b24
commit 3f23845c89
2 changed files with 31 additions and 3 deletions
@@ -45,9 +45,19 @@
}
@for (topic of topics(); track topic) {
<mat-option [value]="topic.display_name">{{
topic.display_name
}}</mat-option>
<mat-option [value]="topic.display_name">
<div class="topic-option">
<div class="topic-main">
{{ topic.display_name }}
</div>
<div class="topic-path">
{{ topic.domain?.display_name }} >
{{ topic.field?.display_name }} >
{{ topic.subfield?.display_name }}
</div>
</div></mat-option
>
}
@if (
@@ -13,3 +13,21 @@ mat-form-field {
.topic-field {
width: 100%;
}
.topic-option {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.topic-main {
font-size: 14px;
font-weight: 500;
}
.topic-path {
font-size: 11px;
color: rgba(0, 0, 0, 0.6);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}