Project

General

Profile

Actions

QA #1203

open

カスタムフィールド説明のポップアップ表示 (4.1から変わった?)

Added by 竹内 亮二 about 2 years ago. Updated over 1 year ago.

Status:
回答済
Priority:
通常
Assignee:
-
Category:
UI
Target version:
-
Start date:
03/04/2021
Due date:
% Done:

0%

Estimated time:

Description

[お知らせ] 11/27午後 redmine.tokyo第21回勉強会開催(オンライン、無料、申込受付中) https://redmine.tokyo/versions/42

■現象/要望

ここで質問して良いのか分かりませんが、よろしければ教えてください。
チケット表示画面でカスタムフィールドにマウスオンすると、説明を記入してあるカスタムフィールドには説明の内容が表示されますが
https://hosting.redmine.jp/startup/manual/custom-field/ にも説明あり)
Redmine3.4の環境だとこのように白地に黒文字で表示され、説明欄で改行を入れると改行も反映されますが、

Redmine4.1の環境だと黒字に白文字で表示され、説明欄の改行も効きません

これは4.1で入った
https://redmine.org/issues/30994
の影響なのでしょうか?

見栄え的には悪くなった気がするのですが・・

■解決策

JQuery tooltipにて、 titleでは無くcontentを設定することで対応できた。

public/javascripts/application.js

$(function () {
  $("[title]:not(.no-tooltip)").tooltip({
+    content: function() {
+      return $(title)
+    },
    show: {
      delay: 400
    },
    position: {
      my: "center bottom-5",
      at: "center top" 
    }
  });
});

■対応状況

unofficialパッチ対応済

■補足


Files

clipboard-202103041523-mqwaf.png (6.15 KB) clipboard-202103041523-mqwaf.png 竹内 亮二, 03/04/2021 03:23 PM
clipboard-202103041526-7bgvr.png (10.3 KB) clipboard-202103041526-7bgvr.png 竹内 亮二, 03/04/2021 03:26 PM
tooltip_patched.png (7.8 KB) tooltip_patched.png 奈良 裕記, 03/19/2021 12:18 AM
Actions #1

Updated by 前田 剛 about 2 years ago

改行の件についてRedmine公式サイトにチケット作りました。

Defect #34834: Line breaks in the description field of custom fields are ignored

Actions #3

Updated by 奈良 裕記 about 2 years ago

ユーザに直接影響する動作差異なので、Redmineバージョン差異の下記チケットに記載しました。

https://redmine.tokyo/issues/755#Redmine41-Tooltip%E3%81%AE%E4%B8%AD%E3%81%A7%E6%94%B9%E8%A1%8C%E3%81%97%E3%81%AA%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%9F

Actions #4

Updated by 奈良 裕記 about 2 years ago

Actions #5

Updated by 奈良 裕記 about 2 years ago

  • Description updated (diff)
Actions #6

Updated by 奈良 裕記 about 2 years ago

  • Description updated (diff)
Actions #7

Updated by 前田 剛 over 1 year ago

修正が trunk にコミットされました。
https://www.redmine.org/projects/redmine/repository/revisions/21222

Redmine 4.2.3 と 4.1.5 で修正されます。

Actions #8

Updated by 奈良 裕記 over 1 year ago

  • Description updated (diff)
Actions

Also available in: Atom PDF