1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-19 22:02:56 +00:00

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
This commit is contained in:
Jean-Philippe Lang 2017-01-30 19:42:36 +00:00
parent ef3833b465
commit be6199add3

View File

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