プロジェクト

全般

プロフィール

Vote #79150

完了

Too large avatar breaks gantt when assignee is a group

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Gantt_34
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
34
version_id:
138
issue_org_id:
28204
author_id:
332
assigned_to_id:
332
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
136
ステータス-->[Closed]

説明

A 128px wide avatar icon breaks gantt view when the assignee of an issue is a group and "Use Gravatar user icons" setting is enabled.

!{width: 525px}.too-large-icon@2x.png!

The problem is introduced in Redmine 3.3.6 and 3.4.4 by #26699. The cause is that the HTML doesn't include "width" and "height" option because image_tag in Rails 4 doesn't accept an integer value for ":size" option (Rails 5 accepts both integer and string value, so the current trunk is not affected).

Redmine 3.4 (img element doesn't have "width" and "height" attributes):


The current trunk (img element has "width" and "height" attributes):



journals

--------------------------------------------------------------------------------
The behavior of image_tag has been changed by this commit:
"Allow to pass a string value to size option in `image_tag` and `video… · rails/rails@ab5f119":https://github.com/rails/rails/commit/ab5f119ac62cdbcc3c9d5c4fd36dafd187b038ca
--------------------------------------------------------------------------------
Patches for this issue.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Committed the fix to 3.4-stable and 3.3-stable branch.

Mischa, thank you for reviewing the patch.
--------------------------------------------------------------------------------


related_issues

relates,Closed,26699,Anonymous user should have their icon
relates,Closed,28208,Anonymous icon is wrongly displayed when assignee is a group

Admin Redmine さんが約4年前に更新

  • カテゴリGantt_34 にセット
  • 対象バージョン3.3.7_138 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0