You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by bb...@apache.org on 2022/04/13 13:14:50 UTC

[airflow] 01/01: Add max width to task group tooltips

This is an automated email from the ASF dual-hosted git repository.

bbovenzi pushed a commit to branch wrap-task-group-tooltips
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 09c054f077cee8261cb979a704bc7e2431f85e9a
Author: Brent Bovenzi <br...@gmail.com>
AuthorDate: Wed Apr 13 09:13:31 2022 -0400

    Add max width to task group tooltips
---
 airflow/www/static/js/graph.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/static/js/graph.js b/airflow/www/static/js/graph.js
index ea7fc10cb7..4ac878b733 100644
--- a/airflow/www/static/js/graph.js
+++ b/airflow/www/static/js/graph.js
@@ -495,7 +495,7 @@ function groupTooltip(node, tis) {
   });
 
   const groupDuration = convertSecsToHumanReadable(moment(maxEnd).diff(minStart, 'second'));
-  const tooltipText = node.tooltip ? `<p>${node.tooltip}</p>` : '';
+  const tooltipText = node.tooltip ? `<p style="max-width: 300px;">${node.tooltip}</p>` : '';
 
   let tt = `
     ${tooltipText}