1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-20 13:49:39 +02:00

Updated "small" image variant for retina

This commit is contained in:
Josh Pigford 2025-02-03 09:08:43 -06:00
parent f63aea7f87
commit a1065fde83

View file

@ -18,7 +18,7 @@ class User < ApplicationRecord
has_one_attached :profile_image do |attachable| has_one_attached :profile_image do |attachable|
attachable.variant :thumbnail, resize_to_fill: [ 300, 300 ], convert: :webp, saver: { quality: 80 } attachable.variant :thumbnail, resize_to_fill: [ 300, 300 ], convert: :webp, saver: { quality: 80 }
attachable.variant :small, resize_to_fill: [ 36, 36 ], convert: :webp, saver: { quality: 80 } attachable.variant :small, resize_to_fill: [ 72, 72 ], convert: :webp, saver: { quality: 80 }
end end
validate :profile_image_size validate :profile_image_size