From 5631ab5868b4291c8a65a309e029c731d820fa44 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 10 Feb 2026 00:35:18 +0100 Subject: fix: Use 16:9 aspect ratio and object-fit contain for canvas Default resolution: 1280x720 (16:9) Canvas uses object-fit: contain to preserve aspect ratio Co-Authored-By: Claude Sonnet 4.5 --- tools/shader_editor/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/shader_editor/index.html b/tools/shader_editor/index.html index de22117..5aff71f 100644 --- a/tools/shader_editor/index.html +++ b/tools/shader_editor/index.html @@ -36,7 +36,7 @@ body { width: 100%; height: 100%; background: #000; - display: block; + object-fit: contain; } .fps-counter { @@ -248,10 +248,10 @@ body {
-- cgit v1.2.3