Skip to content

Commit

Permalink
fix(web): fill full page (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
antbern authored Jul 12, 2024
1 parent 5c07bbc commit a6cd532
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions slamrs/baseui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<head>
<!-- change this to your project name -->
<title>Base UI</title>
<title>Slamrs Webapp</title>

<!-- config for our rust wasm binary. go to https://trunkrs.dev/assets/#rust for more customization -->
<link data-trunk rel="rust" data-wasm-opt="2" />
Expand Down Expand Up @@ -60,15 +60,16 @@
width: 100%;
}

/* Position canvas in center-top: */
/* Make canvas fill entire document: */
canvas {
margin-right: auto;
margin-left: auto;
display: block;
position: absolute;
top: 0%;
left: 50%;
transform: translate(-50%, 0%);
top: 0;
left: 0;
width: 100%;
height: 100%;
}

.centered {
Expand Down Expand Up @@ -114,8 +115,7 @@
transform: rotate(360deg);
}
}

</style>
</style>
</head>

<body>
Expand Down

0 comments on commit a6cd532

Please sign in to comment.