mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-09 22:22:37 +01:00
Merge pull request #164 from kytrinyx/adjust-font-size
Split up the font size calculation
This commit is contained in:
commit
004339a2ca
4 changed files with 12 additions and 7 deletions
|
|
@ -13,8 +13,8 @@ module Stats
|
|||
tags.empty?
|
||||
end
|
||||
|
||||
def font_size(tag)
|
||||
(9 + 2*(tag.count-min)/divisor)
|
||||
def relative_size(tag)
|
||||
(tag.count - min) / divisor
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue