Update styles.css
Fix to get old canvas scaling behaviour back
This commit is contained in:
parent
f701e90273
commit
796f24b29c
@ -1,19 +1,20 @@
|
|||||||
body, html {
|
body {
|
||||||
height: 100%;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
height: 100vh;
|
||||||
background-color: #000000; /* Change the background color as needed */
|
background-color: #000000; /* Change the background color as needed */
|
||||||
}
|
}
|
||||||
|
|
||||||
#canvasContainer {
|
#canvasContainer {
|
||||||
aspect-ratio: 1 / 1;
|
aspect-ratio: 1 / 1;
|
||||||
width: 100vh; /* Initial half-screen size */
|
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
transition: width 0.5s ease; /* Smooth transition */
|
transition: width 0.5s ease; /* Smooth transition */
|
||||||
float: left;
|
float: left;
|
||||||
|
object-fit: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
canvas {
|
canvas {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user