Module: Spina::Admin::ImagesHelper
- Defined in:
- app/helpers/spina/admin/images_helper.rb
Instance Method Summary collapse
Instance Method Details
#ratio_tailwind_class_for_image_part(image) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/helpers/spina/admin/images_helper.rb', line 3 def ratio_tailwind_class_for_image_part(image) case image..try(:[], :ratio) when "portrait" "w-28" when "landscape" "w-48" when "wide" "w-80" else "w-36" # Square (default) end end |