Skip to content

Commit

Permalink
Roll back svg size increase and fix version of Quarto in deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
tverbeiren committed Dec 7, 2023
1 parent 4bcea74 commit f4a16a2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-to-virusbank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.4.449
tinytex: true

- name: Render Quarto Project
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_to_netlify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.4.449
tinytex: true

- name: Render Quarto Project
Expand Down
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': 600,
'height': 600,
'width': 500,
'height': 500,
'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 600px
// If the size of the SVG is smaller than the allocated 500px
// then resize it relatively to the fraction
// Allow for a bit of padding, hence the .95 factor.
newSizeF = (curSize) => {
if (curSize < 600) {
return 600 * (0.95 * 600 / curSize)
if (curSize < 500) {
return 500 * (0.95 * 500 / 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: 600;
width: 500;
}

/* left and right container, based on variable */
Expand Down

0 comments on commit f4a16a2

Please sign in to comment.