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>
(cherry picked from commit f9786d4)
  • Loading branch information
freget authored and ashb committed Jun 22, 2021
1 parent 777fd9b commit 215492d
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 215492d

Please sign in to comment.