A platform for community discussion. Free, open, simple.
FIX: category badge when using box style on long category names
Joffrey JAFFEUXf06f7161eaab
diff --git a/app/assets/javascripts/select-kit/templates/components/category-row.hbs b/app/assets/javascripts/select-kit/templates/components/category-row.hbsindex 5ad6824c659..5d0908be623 100644--- a/app/assets/javascripts/select-kit/templates/components/category-row.hbs+++ b/app/assets/javascripts/select-kit/templates/components/category-row.hbs@@ -1,7 +1,7 @@{{#if category}}{{#if hasParentCategory}}<div class="category-status">- {{badgeForParentCategory}} {{badgeForCategory}}+ {{badgeForParentCategory}} {{badgeForCategory}}<span class="topic-count">× {{topicCount}}</span></div>{{else}}diff --git a/app/assets/stylesheets/common/select-kit/category-row.scss b/app/assets/stylesheets/common/select-kit/category-row.scssindex ef3245d5012..b572f3a1822 100644--- a/app/assets/stylesheets/common/select-kit/category-row.scss+++ b/app/assets/stylesheets/common/select-kit/category-row.scss@@ -2,9 +2,16 @@.category-row {.category-status {display: flex;+ flex-wrap: wrap;+ align-items: center;-webkit-box-flex: 0;-ms-flex: 1 1 auto;flex: 1 1 auto;++ .badge-wrapper.box {+ margin-bottom: 1px;+ margin-top: 1px;+ }}}}