Browse Source

wasm: center non-resizable UIs

Signed-off-by: falkTX <falktx@falktx.com>
main
falkTX 1 month ago
parent
commit
c15cb7e40e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      utils/emscripten.html.in

+ 6
- 0
utils/emscripten.html.in View File

@@ -32,6 +32,12 @@
transform: scale(calc(1 / var(--device-pixel-ratio))); transform: scale(calc(1 / var(--device-pixel-ratio)));
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
/* center */
margin: auto auto;
top: 0;
bottom: 0;
left: 0;
right: 0;
} }


#error { #error {


Loading…
Cancel
Save