UX: Prevent category-drop topic count from wrapping to new line (#8943)

This commit is contained in:
Penar Musaraj
2020-02-12 14:34:16 -05:00
committed by GitHub
parent c36ae17260
commit efa9ba4975
4 changed files with 24 additions and 4 deletions

View File

@@ -53,7 +53,8 @@ export default SelectKitRowComponent.extend({
link: this.categoryLink,
allowUncategorized:
this.allowUncategorizedTopics || this.allowUncategorized,
hideParent: !!this.parentCategory
hideParent: !!this.parentCategory,
topicCount: this.topicCount
}).htmlSafe();
}),

View File

@@ -6,9 +6,6 @@
{{/unless}}
{{/if}}
{{badgeForCategory}}
<span class="topic-count" aria-label={{i18n "category_row.topic_count" count=topicCount}}>
&times; {{topicCount}}
</span>
</div>
{{#if shouldDisplayDescription}}