From 6d5dd92ea1454fd760f4f064a4feb0b55d8f038c Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Tue, 19 Dec 2023 16:22:30 -0600 Subject: [PATCH] DEV: Half-revert search-menu flicker fix (#24975) --- .../app/components/search-menu/results.hbs | 130 +++++++++--------- 1 file changed, 66 insertions(+), 64 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 864f584f87c..2d666379085 100644 --- a/app/assets/javascripts/discourse/app/components/search-menu/results.hbs +++ b/app/assets/javascripts/discourse/app/components/search-menu/results.hbs @@ -2,76 +2,78 @@ {{else}}
- - {{#if @suggestionKeyword}} - - {{else if this.termTooShort}} -
{{i18n "search.too_short"}}
- {{else if this.noTopicResults}} -
{{i18n "search.no_results"}}
- {{else if this.renderInitialOptions}} - - {{else}} - {{#if (and (not @searchTopics) (not @inPMInboxContext))}} - {{! render the first couple suggestions before a search has been performed}} + {{#if @suggestionKeyword}} + + {{else if this.termTooShort}} +
{{i18n "search.too_short"}}
+ {{else if this.noTopicResults}} +
{{i18n "search.no_results"}}
+ {{else if this.renderInitialOptions}} - {{/if}} + {{else}} + {{#if (and (not @searchTopics) (not @inPMInboxContext))}} + {{! render the first couple suggestions before a search has been performed}} + + {{/if}} - {{#if (and @searchTopics this.resultTypesWithComponent)}} - {{! render results after a search has been performed }} - - - {{else if - (and - (not @inPMInboxContext) - (not @searchTopics) - this.resultTypesWithComponent - ) - }} - + {{#if (and @searchTopics this.resultTypesWithComponent)}} + {{! render results after a search has been performed }} + + + {{else if + (and + (not @inPMInboxContext) + (not @searchTopics) + this.resultTypesWithComponent + ) + }} + + {{/if}} {{/if}} - {{/if}} - + + {{/unless}}
{{/if}} \ No newline at end of file