Merge pull request #1731 from basecamp/avatar-thumb-aspect-ratio

Ensure avatar thumbnails are square
This commit is contained in:
Kevin McConnell
2025-11-26 09:30:33 +00:00
committed by GitHub
+1 -1
View File
@@ -4,7 +4,7 @@ class User < ApplicationRecord
include Timelined # Depends on Accessor
has_one_attached :avatar do |attachable|
attachable.variant :thumb, resize_to_limit: [ 256, 256 ]
attachable.variant :thumb, resize_to_fill: [ 256, 256 ]
end
belongs_to :account