From 4886c1fddc5fcd2080855f2277c2125ecf3af7d2 Mon Sep 17 00:00:00 2001 From: Isaac Janzen <50783505+janzenisaac@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:26:40 -0700 Subject: [PATCH] DEV: Update when / how we display of full name on `search-item-user` (#25090) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Full name should only be displayed within `initial options` - Keep results on a single line unless full name is included # Initial Options # Other --- .../discourse/app/components/search-menu/results.hbs | 1 + .../app/components/search-menu/results/type/user.hbs | 2 +- .../app/components/search-menu/results/types.hbs | 5 ++++- .../discourse/tests/acceptance/glimmer-search-test.js | 3 --- app/assets/stylesheets/common/base/search-menu.scss | 9 ++++----- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/search-menu/results.hbs b/app/assets/javascripts/discourse/app/components/search-menu/results.hbs index 2d666379085..6cfec455484 100644 --- a/app/assets/javascripts/discourse/app/components/search-menu/results.hbs +++ b/app/assets/javascripts/discourse/app/components/search-menu/results.hbs @@ -62,6 +62,7 @@ @resultTypes={{this.resultTypesWithComponent}} @closeSearchMenu={{@closeSearchMenu}} @searchTermChanged={{@searchTermChanged}} + @displayNameWithUser={{true}} /> {{/if}} {{/if}} diff --git a/app/assets/javascripts/discourse/app/components/search-menu/results/type/user.hbs b/app/assets/javascripts/discourse/app/components/search-menu/results/type/user.hbs index 731df825b3e..d6a9a070ad3 100644 --- a/app/assets/javascripts/discourse/app/components/search-menu/results/type/user.hbs +++ b/app/assets/javascripts/discourse/app/components/search-menu/results/type/user.hbs @@ -5,7 +5,7 @@ username=@result.username }}