UX: Improve display of short site description in header dropdown (#21628)
This commit is contained in:
parent
25276f62f9
commit
4ec9a947dc
|
@ -5,14 +5,8 @@
|
|||
@headerActions={{this.section.headerActions}}
|
||||
@headerActionsIcon={{this.section.headerActionIcon}}
|
||||
@class={{this.section.dragCss}}
|
||||
@sectionDescription={{this.section.description}}
|
||||
>
|
||||
|
||||
{{#if this.section.displayShortSiteDescription}}
|
||||
<Sidebar::SectionMessage>
|
||||
{{this.siteSettings.short_site_description}}
|
||||
</Sidebar::SectionMessage>
|
||||
{{/if}}
|
||||
|
||||
{{#each this.section.links as |link|}}
|
||||
{{#if link.shouldDisplay}}
|
||||
{{#if link.external}}
|
||||
|
|
|
@ -44,6 +44,12 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
|
||||
{{#if @sectionDescription}}
|
||||
<Sidebar::SectionMessage>
|
||||
{{@sectionDescription}}
|
||||
</Sidebar::SectionMessage>
|
||||
{{/if}}
|
||||
|
||||
{{#if this.displaySectionContent}}
|
||||
<ul class="sidebar-section-content" id={{this.sidebarSectionContentID}}>
|
||||
{{yield}}
|
||||
|
|
|
@ -131,8 +131,12 @@ export default class CommunitySection {
|
|||
});
|
||||
}
|
||||
|
||||
get displayShortSiteDescription() {
|
||||
return !this.currentUser && !!this.siteSettings.short_site_description;
|
||||
get description() {
|
||||
if (!this.currentUser && !!this.siteSettings.short_site_description) {
|
||||
return this.siteSettings.short_site_description;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
get decoratedTitle() {
|
||||
|
|
|
@ -52,6 +52,10 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-section-message {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-custom-sections .d-icon-globe {
|
||||
|
|
|
@ -52,10 +52,6 @@
|
|||
padding-top: 0;
|
||||
padding-bottom: 0.25em;
|
||||
}
|
||||
|
||||
.sidebar-section-message {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-section-wrapper {
|
||||
|
|
Loading…
Reference in New Issue