Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/data-intuitive/VirusBank in…
Browse files Browse the repository at this point in the history
…to develop
  • Loading branch information
tverbeiren committed Feb 20, 2024
2 parents 7e8cf53 + e39c09a commit 7641fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions _js/family.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 7641fc4

Please sign in to comment.