Commit 14e6eda
committed
fix(site): size the particle canvas to the viewport
The canvas sets width and height attributes scaled by devicePixelRatio.
Those give the element a specified size that inset: 0 cannot shrink, so on
a 2x display the box was twice the viewport and the dots covered only the
top-left quadrant. Percentages resolve against the fixed containing block
and, unlike 100vw, exclude the scrollbar gutter.1 parent f4d5012 commit 14e6eda
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
154 | 156 | | |
155 | 157 | | |
156 | 158 | | |
0 commit comments