begone flex
This commit is contained in:
parent
f8583702be
commit
cee5731e6c
@ -2,7 +2,7 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1"/>
|
||||||
<title>Strafe Client</title>
|
<title>Strafe Client</title>
|
||||||
|
|
||||||
<base data-trunk-public-url />
|
<base data-trunk-public-url />
|
||||||
@ -16,15 +16,9 @@
|
|||||||
.root {
|
.root {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
}
|
}
|
||||||
.main-canvas {
|
.main-canvas {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
/* This allows the flexbox to grow to max size, this is needed for WebGPU */
|
|
||||||
flex: 1;
|
|
||||||
/* This forces CSS to ignore the width/height of the canvas, this is needed for WebGL */
|
|
||||||
contain: size;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
Loading…
Reference in New Issue
Block a user