This is an automated email from the ASF dual-hosted git repository. ash pushed a commit to branch v2-1-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 215492d17a8c4ea55a7b2e57b3fd742a0574031c Author: freget <[email protected]> AuthorDate: Mon Jun 21 17:25:24 2021 +0200 Tree View UI for larger DAGs & more consistent spacing in Tree View (#16522) * Made squareX independent of screen width * Removed now unnecessary variable innerWidth. Co-authored-by: Brent Bovenzi <[email protected]> Co-authored-by: Schneider, Thilo <[email protected]> Co-authored-by: Brent Bovenzi <[email protected]> (cherry picked from commit f9786d42f1f861c7a40745c00cd4d3feaf6254a7) --- airflow/www/static/js/tree.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/airflow/www/static/js/tree.js b/airflow/www/static/js/tree.js index 882d7ce5..07daf0e 100644 --- a/airflow/www/static/js/tree.js +++ b/airflow/www/static/js/tree.js @@ -72,8 +72,7 @@ document.addEventListener('DOMContentLoaded', () => { }); treeDepth += 1; - const innerWidth = window.innerWidth > 1200 ? 1200 : window.innerWidth; - const squareX = innerWidth - (data.instances.length * squareSize) - (treeDepth * 50); + const squareX = (treeDepth * 25) + 200; const squareSpacing = 2; const margin = {
