Skip to content

Commit

Permalink
style: Reduce small-world visualization sizes to 70% on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 27, 2024
1 parent b8aa2ca commit d66ff00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hugo-site/layouts/shortcodes/small-world-routing.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</button>
</div>
<div style="display: flex; flex-direction: row; justify-content: center;">
<canvas id="networkCanvas2" width="600" height="600" style="max-width: 100%; height: auto;"></canvas>
<canvas id="networkCanvas2" width="600" height="600" style="max-width: 70%; height: auto;"></canvas>
</div>
</div>
<script src="/js/small-world-routing.js"></script>
6 changes: 3 additions & 3 deletions hugo-site/layouts/shortcodes/small-world-scale.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
</button>
</div>
<div style="display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1rem;">
<canvas id="networkCanvas3" width="500" height="500" style="max-width: 100%; height: auto;"></canvas>
<div id="scalingChart" style="width: min(500px, 100%); height: 500px;">
<svg width="500" height="500" style="max-width: 100%; height: auto;"></svg>
<canvas id="networkCanvas3" width="500" height="500" style="max-width: 70%; height: auto;"></canvas>
<div id="scalingChart" style="width: min(500px, 70%); height: 500px;">
<svg width="500" height="500" style="max-width: 70%; height: auto;"></svg>
</div>
</div>
<div style="margin-bottom: 2rem;"></div>
Expand Down

0 comments on commit d66ff00

Please sign in to comment.