diff --git a/app/assets/javascripts/discourse/lib/html.js b/app/assets/javascripts/discourse/lib/html.js index 6663f673117..8d4e658620b 100644 --- a/app/assets/javascripts/discourse/lib/html.js +++ b/app/assets/javascripts/discourse/lib/html.js @@ -104,11 +104,11 @@ Discourse.HTML = { if (opts.showParent && category.get('parent_category_id')) { var parent = Discourse.Category.findById(category.get('parent_category_id')); - html = "" + (Em.get(parent, 'read_restricted') ? " " : "") + Em.get(parent, 'name') + "" + - html; + html + ""; } return html; diff --git a/app/assets/stylesheets/common/components/badges.css.scss b/app/assets/stylesheets/common/components/badges.css.scss index 35a8062862b..68adec8189f 100644 --- a/app/assets/stylesheets/common/components/badges.css.scss +++ b/app/assets/stylesheets/common/components/badges.css.scss @@ -24,6 +24,13 @@ white-space: nowrap; display: inline-block; line-height: 1; + i.fa { + font-size: 11px; + vertical-align: 1px; + } +} +.badge-wrapper { + white-space: nowrap; } .badge-category {