changed font size
This commit is contained in:
1 parent
0e1123396b
commit
3203b35722
1 file changed
+1
-2
@@ -191,12 +191,11 @@ class AnnouncementsController < ApplicationController
|
||||
}
|
||||
end
|
||||
max = temp.max_by{|t| t["count"]}["count"]
|
||||
min = temp.min_by{|t| t["count"]}["count"]
|
||||
tags = []
|
||||
temp.each do |tag|
|
||||
if tag["count"] > 0
|
||||
percent = (tag["count"] * 100) / max
|
||||
font_size = ((percent / 10).ceil) + 11
|
||||
font_size = ((percent / 10).round) + 16
|
||||
tag["font-size"] = font_size
|
||||
tags << tag
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user