Fixing ugly canvas. now full browser window, fixing dpi blurry issue

This commit is contained in:
Dustin Swan 2026-02-03 13:28:20 -07:00
parent 86996ed4ef
commit 58715f42bf
No known key found for this signature in database
GPG key ID: 30D46587E2100467
4 changed files with 45 additions and 11 deletions

View file

@ -5,7 +5,27 @@
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cg</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body, html {
width: 100%;
height: 100%;
overflow: hidden;
}
canvas {
display: block;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>