Module:ItemBox: Difference between revisions

Jannepg (talk | contribs)
Halfass solution for somewhat scaling the text on ItemBox
 
Jannepg (talk | contribs)
m added a min font size.
Line 53: Line 53:
         fontSize = fullSize - (longestLine - 8) * 1
         fontSize = fullSize - (longestLine - 8) * 1
     end
     end
   
    fontSize = math.max(6, fontSize)


     return fontSize
     return fontSize