From 0b558f5874f994e0abcc9d83d1a9a7e4fc6799a4 Mon Sep 17 00:00:00 2001 From: James Kiesel Date: Wed, 23 Mar 2016 14:45:22 +1300 Subject: [PATCH] Fix for category stripe misalignment --- lib/category_badge.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/category_badge.rb b/lib/category_badge.rb index 3175372d9ce..196d17691a8 100644 --- a/lib/category_badge.rb +++ b/lib/category_badge.rb @@ -50,7 +50,7 @@ module CategoryBadge case (SiteSetting.category_style || :box).to_sym when :bar then inline_category_stripe(category.color, 'display: inline-block; padding: 1px;', true) when :box then inline_category_stripe(category.color, 'left: 5px; display: block; position: absolute; width: calc(100% - 5px); height: 100%;') - when :bullet then inline_category_stripe(category.color, "display: inline-block; width: #{category.parent_category_id.nil? ? 10 : 5}px; height: 10px;", true) + when :bullet then inline_category_stripe(category.color, "display: inline-block; width: #{category.parent_category_id.nil? ? 10 : 5}px; height: 10px;") end else category_stripe(category.color, 'badge-category-bg')