diff --git a/_js/family.qmd b/_js/family.qmd index 45e3cab6..012c4605 100644 --- a/_js/family.qmd +++ b/_js/family.qmd @@ -184,8 +184,8 @@ renderedTree = tree } }) .render({ - 'width': 500, - 'height': 500, + 'width': 600, + 'height': 600, 'left-right-spacing': 'fit-to-size', 'top-bottom-spacing': 'fit-to-size', 'is-radial': true, @@ -325,12 +325,12 @@ feedbackToolbox = d3.selectAll(".nav-item") // Add SVG to the DOM tmp = d3.select("#tree-container").node().appendChild(showTree) -// If the size of the SVG is smaller than the allocated 500px +// If the size of the SVG is smaller than the allocated 600px // then resize it relatively to the fraction // Allow for a bit of padding, hence the .95 factor. newSizeF = (curSize) => { - if (curSize < 500) { - return 500 * (0.95 * 500 / curSize) + if (curSize < 600) { + return 600 * (0.95 * 600 / curSize) } else { return curSize } diff --git a/styles.css b/styles.css index a5ac8aab..ab8b625a 100644 --- a/styles.css +++ b/styles.css @@ -283,7 +283,7 @@ Content, containers, ... /* Fixing the wwidth also fixes the location and avoid sliding in */ svg { - width: 500; + width: 600; } /* left and right container, based on variable */