From e805c219a0f8185a6dad3394be54caa53c864947 Mon Sep 17 00:00:00 2001 From: Jan Schulz-Hofen Date: Sat, 28 Jan 2017 19:17:02 +0100 Subject: [PATCH 4/4] set thumbnail width on image tag to avoid too wide white boxes on Firefox --- app/helpers/application_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index d87776a..1f94b62 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -223,7 +223,8 @@ module ApplicationHelper link_to( image_tag( thumbnail_path(attachment), - :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x" + :srcset => "#{thumbnail_path(attachment, :size => Setting.thumbnails_size.to_i * 2)} 2x", + :width => Setting.thumbnails_size ), named_attachment_path( attachment, -- 2.4.0