Skip to content

Commit

Permalink
Made squareX independent of screen width
Browse files Browse the repository at this point in the history
  • Loading branch information
Schneider, Thilo authored and freget committed Jun 20, 2021
1 parent f40d555 commit 9abb6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/www/static/js/tree.js
Expand Up @@ -73,7 +73,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 9abb6fc

Please sign in to comment.