Compare commits

...

2 Commits

Author SHA1 Message Date
1c86219dbe begone root 2025-01-04 01:12:27 -08:00
cee5731e6c begone flex 2025-01-04 01:05:34 -08:00

@ -2,7 +2,7 @@
<html lang="en">
<head>
<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>
<base data-trunk-public-url />
@ -13,25 +13,13 @@
width: 100%;
height: 100%;
}
.root {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.main-canvas {
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>
</head>
<body>
<div class="root">
<canvas class="main-canvas" id="canvas"></canvas>
</div>
<canvas class="main-canvas" id="canvas"></canvas>
<link data-trunk rel="rust" href="../strafe-client/Cargo.toml"/>
</body>
</html>