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}}
|
@headerActions={{this.section.headerActions}}
|
||||||
@headerActionsIcon={{this.section.headerActionIcon}}
|
@headerActionsIcon={{this.section.headerActionIcon}}
|
||||||
@class={{this.section.dragCss}}
|
@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|}}
|
{{#each this.section.links as |link|}}
|
||||||
{{#if link.shouldDisplay}}
|
{{#if link.shouldDisplay}}
|
||||||
{{#if link.external}}
|
{{#if link.external}}
|
||||||
|
|
|
@ -44,6 +44,12 @@
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{{#if @sectionDescription}}
|
||||||
|
<Sidebar::SectionMessage>
|
||||||
|
{{@sectionDescription}}
|
||||||
|
</Sidebar::SectionMessage>
|
||||||
|
{{/if}}
|
||||||
|
|
||||||
{{#if this.displaySectionContent}}
|
{{#if this.displaySectionContent}}
|
||||||
<ul class="sidebar-section-content" id={{this.sidebarSectionContentID}}>
|
<ul class="sidebar-section-content" id={{this.sidebarSectionContentID}}>
|
||||||
{{yield}}
|
{{yield}}
|
||||||
|
|
|
@ -131,8 +131,12 @@ export default class CommunitySection {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
get displayShortSiteDescription() {
|
get description() {
|
||||||
return !this.currentUser && !!this.siteSettings.short_site_description;
|
if (!this.currentUser && !!this.siteSettings.short_site_description) {
|
||||||
|
return this.siteSettings.short_site_description;
|
||||||
|
} else {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
get decoratedTitle() {
|
get decoratedTitle() {
|
||||||
|
|
|
@ -52,6 +52,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sidebar-section-message {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-custom-sections .d-icon-globe {
|
.sidebar-custom-sections .d-icon-globe {
|
||||||
|
|
|
@ -52,10 +52,6 @@
|
||||||
padding-top: 0;
|
padding-top: 0;
|
||||||
padding-bottom: 0.25em;
|
padding-bottom: 0.25em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-section-message {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-section-wrapper {
|
.sidebar-section-wrapper {
|
||||||
|
|
Loading…
Reference in New Issue