mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Update mobile variant size for white label logo to fit the same ratio
Default size is 217*44. On mobile, we used to use 75*26, but with a different image. With the white label, using the same image, we should have the same ratio between default and mobile ; that's why I've updated the width of the variant to 128.
This commit is contained in:
@@ -91,7 +91,7 @@ class Enterprise < ApplicationRecord
|
||||
end
|
||||
has_one_attached :white_label_logo, service: image_service do |attachment|
|
||||
attachment.variant :default, resize_to_fill: [217, 44]
|
||||
attachment.variant :mobile, resize_to_fill: [75, 26]
|
||||
attachment.variant :mobile, resize_to_fill: [128, 26]
|
||||
end
|
||||
|
||||
validates :logo,
|
||||
|
||||
Reference in New Issue
Block a user