diff --git a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html index 91a2bdcc..bf164795 100644 --- a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html +++ b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.html @@ -45,9 +45,19 @@ } @for (topic of topics(); track topic) { - {{ - topic.display_name - }} + +
+
+ {{ topic.display_name }} +
+ +
+ {{ topic.domain?.display_name }} > + {{ topic.field?.display_name }} > + {{ topic.subfield?.display_name }} +
+
} @if ( diff --git a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.scss b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.scss index 13b1fac6..3e2ba937 100644 --- a/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.scss +++ b/webapp/src/app/shared/ui/topic-autocomplete/topic-autocomplete.component.scss @@ -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; +}