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:
Jean-Baptiste Bellet
2023-07-26 14:43:06 +02:00
parent f5564a5947
commit 1a7e99143b

View File

@@ -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,