From 4ec9a947dc84d01089d03f67de1acdf6db13ab9b Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 18 May 2023 11:16:21 +0900 Subject: [PATCH] UX: Improve display of short site description in header dropdown (#21628) --- .../app/components/sidebar/common/custom-section.hbs | 8 +------- .../discourse/app/components/sidebar/section.hbs | 6 ++++++ .../discourse/app/lib/sidebar/community-section.js | 8 ++++++-- app/assets/stylesheets/desktop/menu-panel.scss | 4 ++++ app/assets/stylesheets/mobile/menu-panel.scss | 4 ---- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs b/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs index bf4da6d19dd..6f8e3bce36a 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/common/custom-section.hbs @@ -5,14 +5,8 @@ @headerActions={{this.section.headerActions}} @headerActionsIcon={{this.section.headerActionIcon}} @class={{this.section.dragCss}} + @sectionDescription={{this.section.description}} > - - {{#if this.section.displayShortSiteDescription}} - - {{this.siteSettings.short_site_description}} - - {{/if}} - {{#each this.section.links as |link|}} {{#if link.shouldDisplay}} {{#if link.external}} diff --git a/app/assets/javascripts/discourse/app/components/sidebar/section.hbs b/app/assets/javascripts/discourse/app/components/sidebar/section.hbs index 2f3baf8ebde..570b4415196 100644 --- a/app/assets/javascripts/discourse/app/components/sidebar/section.hbs +++ b/app/assets/javascripts/discourse/app/components/sidebar/section.hbs @@ -44,6 +44,12 @@ {{/if}} + {{#if @sectionDescription}} + + {{@sectionDescription}} + + {{/if}} + {{#if this.displaySectionContent}}