From 3748f50b6dac6e0f8c56cc0906f656e9261855ce Mon Sep 17 00:00:00 2001 From: Toks Date: Sun, 12 Jan 2014 20:03:35 -0500 Subject: [PATCH] fixes #2090 --- app/helpers/tags_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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