fixing demo errors, rename template to style

This commit is contained in:
2023-01-03 19:37:31 +02:00
parent 693d121c0f
commit 9bcd43215b
11 changed files with 14 additions and 16 deletions

View File

@ -5,7 +5,8 @@ module Merged
def rows( text )
return 5 if text.blank?
text = text.text unless text.is_a?(String)
rows = (text.length / 60).to_i
return 5 if text.blank?
rows = (text.length / 50).to_i
return 5 if rows < 5
rows
end