Skip to content

Commit

Permalink
fix(hydra): Use innerWidth and innerHeight for default canvas size + …
Browse files Browse the repository at this point in the history
…pixelated image rendering

Fixes #234
  • Loading branch information
munshkr committed Mar 31, 2024
1 parent 9fbeb43 commit f61577a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/web/src/components/hydra-canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ const HydraCanvas = React.forwardRef(
"absolute top-0 left-0",
fullscreen && "h-full w-full block overflow-hidden"
)}
width={1280}
height={720}
style={{ imageRendering: "pixelated" }}
width={window.innerWidth}
height={window.innerHeight}
/>
)
);
Expand Down

0 comments on commit f61577a

Please sign in to comment.