+
In this instance's network
In the vidiverse
diff --git a/client/src/app/header/suggestion.component.scss b/client/src/app/header/suggestion.component.scss
index 41ca34d5a..09a3a0a32 100644
--- a/client/src/app/header/suggestion.component.scss
+++ b/client/src/app/header/suggestion.component.scss
@@ -17,11 +17,8 @@ a {
}
}
-.bg-gray {
+.result-type {
background-color: pvar(--mainBackgroundColor);
-}
-
-.text-gray-light {
color: pvar(--mainForegroundColor);
}
@@ -30,6 +27,5 @@ my-global-icon {
width: 17px;
position: relative;
- top: -2px;
- margin: 5px;
+ top: -1px;
}
diff --git a/client/src/app/header/suggestion.component.ts b/client/src/app/header/suggestion.component.ts
index d40acfe6b..11e0f1a5b 100644
--- a/client/src/app/header/suggestion.component.ts
+++ b/client/src/app/header/suggestion.component.ts
@@ -23,12 +23,16 @@ export type SuggestionPayloadType = 'search-instance' | 'search-index'
export class SuggestionComponent implements OnInit, ListKeyManagerOption {
@Input() result: SuggestionPayload
@Input() highlight: string
+ @Input() describedby: string
disabled = false
active = false
- getLabel () {
- return this.result.text
+ getTitle () {
+ if (this.result.type === 'search-instance') return $localize`Search "${this.result.text}" in this instance's network`
+ if (this.result.type === 'search-index') return $localize`Search "${this.result.text}" in the vidiverse`
+
+ return undefined
}
ngOnInit () {