From be6199add30b888fb6706a9f7c0010750bda7460 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 30 Jan 2017 19:42:36 +0000 Subject: [PATCH] Set thumbnail width on image tag to avoid too wide white boxes on Firefox (#24927). Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@16316 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- 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 dd9ecb80e..908b35502 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,