From 1a7e99143b4ee3aa3211eb4ca8ddf1b74f5b52a8 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Wed, 26 Jul 2023 14:43:06 +0200 Subject: [PATCH] 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. --- app/models/enterprise.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index a35eadf9fd..224a92dfe7 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -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,