From 73aa6385e6d235a7f00c8353166c4eb72a4a8c50 Mon Sep 17 00:00:00 2001 From: helgasoft Date: Wed, 23 Oct 2024 21:49:53 -0700 Subject: [PATCH] center examples canvas inside container --- src/editor/sandbox/srcdoc.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/editor/sandbox/srcdoc.html b/src/editor/sandbox/srcdoc.html index 3dc3d807..e4389184 100644 --- a/src/editor/sandbox/srcdoc.html +++ b/src/editor/sandbox/srcdoc.html @@ -16,6 +16,10 @@ position: relative; height: 100vh; overflow: hidden; + /* keep content centered on resize: */ + display:flex; + justify-content:center; + align-items:center; } .ec-debug-dirty-rect { background-color: rgba(255, 0, 0, 0.2) !important;