diff --git a/app/helpers/tags_helper.rb b/app/helpers/tags_helper.rb index 788e02747..9065b0fe5 100644 --- a/app/helpers/tags_helper.rb +++ b/app/helpers/tags_helper.rb @@ -1,7 +1,7 @@ module TagsHelper def tag_post_count_style(tag) @highest_post_count ||= Tag.highest_post_count - width_percent = Math.log(tag.post_count, @highest_post_count) * 100 + width_percent = Math.log([tag.post_count, 1].max, @highest_post_count) * 100 "background: linear-gradient(to left, #DDD #{width_percent}%, white #{width_percent}%)" end end