Skip to content

Commit 224c065

Browse files
committed
fix: background resizing
1 parent 4cb6099 commit 224c065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/BackgroundAnimation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ export function BackgroundAnimation() {
7676
offscreen.getContext('2d')!.drawImage(canvas!, 0, 0)
7777

7878
// Resize the main canvas
79-
canvas!.width = document.documentElement.clientWidth
80-
canvas!.height = document.documentElement.clientHeight
79+
canvas!.width = window.innerWidth
80+
canvas!.height = window.innerHeight
8181

8282
// Stretch and redraw the saved content to fill the new size
8383
ctx.drawImage(offscreen, 0, 0, canvas!.width, canvas!.height)

0 commit comments

Comments
 (0)