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