Skip to content

Commit

Permalink
Tree View UI for larger DAGs & more consistent spacing in Tree View (#…
Browse files Browse the repository at this point in the history
…16522)

* Made squareX independent of screen width

* Removed now unnecessary variable innerWidth.

Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>

Co-authored-by: Schneider, Thilo <t.schneider3@fraport.de>
Co-authored-by: Brent Bovenzi <brent.bovenzi@gmail.com>
  • Loading branch information
3 people committed Jun 21, 2021
1 parent 6b0dfec commit f9786d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions airflow/www/static/js/tree.js
Expand Up @@ -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 = {
Expand Down

0 comments on commit f9786d4

Please sign in to comment.