From 4f8db029495984e3a2a07883edbab9cc3c1cbe8e Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 28 Jun 2024 08:44:17 +0200 Subject: [PATCH] Improve `multiple_apps.html` example/demo/test --- web_demo/multiple_apps.html | 35 +++++++---------------------------- 1 file changed, 7 insertions(+), 28 deletions(-) diff --git a/web_demo/multiple_apps.html b/web_demo/multiple_apps.html index 14d0d5cf829..096dd2d1fa1 100644 --- a/web_demo/multiple_apps.html +++ b/web_demo/multiple_apps.html @@ -1,4 +1,3 @@ - @@ -21,11 +20,6 @@ display: flex; } - .canvas_wrap { - /* height: 200px; */ - width: 400px; - } - @media (prefers-color-scheme: dark) { body { /* Dark mode background color for what is not covered by the egui canvas, @@ -37,24 +31,14 @@ /* Allow canvas to fill entire web page: */ html, body { - overflow: hidden; - margin: 0 !important; - padding: 0 !important; height: 100%; - width: 100%; } - /* Position canvas in center-top: */ canvas { - /* margin-right: auto; - margin-left: auto; */ - /* display: block; - position: absolute; - top: 0%; - left: 50%; - transform: translate(-50%, 0%); */ + margin: 8px; + padding: 8px; width: 45%; - height: 90%; + height: 98%; } .centered { @@ -106,19 +90,14 @@ -
controls
- -
- -
-
- -
+ + +