From c15cb7e40e0e60ca718ade97d395272adf4e9403 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 6 Sep 2025 18:49:06 +0200 Subject: [PATCH] wasm: center non-resizable UIs Signed-off-by: falkTX --- utils/emscripten.html.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/emscripten.html.in b/utils/emscripten.html.in index d2d85bac..2e422069 100644 --- a/utils/emscripten.html.in +++ b/utils/emscripten.html.in @@ -32,6 +32,12 @@ transform: scale(calc(1 / var(--device-pixel-ratio))); width: 100vw; height: 100vh; + /* center */ + margin: auto auto; + top: 0; + bottom: 0; + left: 0; + right: 0; } #error {