UX: remove extra whitespace in search helper (#19980)

This commit is contained in:
Kris 2023-01-24 15:27:05 -05:00 committed by GitHub
parent e71bf672cb
commit 75032f4752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -676,7 +676,7 @@ createWidget("search-menu-initial-options", {
slug: term,
extraHint: I18n.t("search.enter_hint"),
label: [
h("span.keyword", `${term} `),
h("span.keyword", `${term}`),
opts.withLabel
? h("span.label-suffix", I18n.t("search.in_topics_posts"))
: null,

View File

@ -73,7 +73,7 @@ acceptance("Search - Anonymous", function (needs) {
query(
".search-menu .results ul.search-menu-initial-options li:first-child .search-item-slug"
).innerText.trim(),
`dev ${I18n.t("search.in_topics_posts")}`,
`dev${I18n.t("search.in_topics_posts")}`,
"shows topic search as first dropdown item"
);