Update styles.css

Fix to get old canvas scaling behaviour back
This commit is contained in:
Janek 2024-01-02 01:30:59 +01:00
parent f701e90273
commit 796f24b29c

@ -1,19 +1,20 @@
body, html {
height: 100%;
body {
margin: 0;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #000000; /* Change the background color as needed */
}
#canvasContainer {
aspect-ratio: 1 / 1;
width: 100vh; /* Initial half-screen size */
position: relative;
overflow: hidden;
transition: width 0.5s ease; /* Smooth transition */
float: left;
object-fit: contain;
}
canvas {