mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Show quick search hint more consistently (#14769)
This commit is contained in:
parent
1c3c0f04d9
commit
488511479e
@ -457,6 +457,7 @@ createWidget("search-menu-assistant", {
|
|||||||
);
|
);
|
||||||
content.push(
|
content.push(
|
||||||
this.attach("search-menu-assistant-item", {
|
this.attach("search-menu-assistant-item", {
|
||||||
|
extraHint: I18n.t("search.enter_hint"),
|
||||||
prefix,
|
prefix,
|
||||||
user,
|
user,
|
||||||
slug: `${prefix}@${user.username}`,
|
slug: `${prefix}@${user.username}`,
|
||||||
@ -650,9 +651,9 @@ createWidget("search-menu-assistant-item", {
|
|||||||
content.push(h("span.search-item-user", userResult));
|
content.push(h("span.search-item-user", userResult));
|
||||||
} else {
|
} else {
|
||||||
content.push(h("span.search-item-slug", attrs.label || attrs.slug));
|
content.push(h("span.search-item-slug", attrs.label || attrs.slug));
|
||||||
if (attrs.extraHint) {
|
}
|
||||||
content.push(h("span.extra-hint", attrs.extraHint));
|
if (attrs.extraHint) {
|
||||||
}
|
content.push(h("span.extra-hint", attrs.extraHint));
|
||||||
}
|
}
|
||||||
return h("a.widget-link.search-link", { attributes }, content);
|
return h("a.widget-link.search-link", { attributes }, content);
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user