From 2f7ec48003a3ad671dc6972df7323bb9c987a270 Mon Sep 17 00:00:00 2001 From: D038721 Date: Tue, 14 Jun 2022 18:28:57 +0200 Subject: [PATCH] [keymanager][devenv] several style fixes, previous positioning broke the app layout, also some cosmetic fixes --- apps/keymanager/src/DevEnv.js | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/apps/keymanager/src/DevEnv.js b/apps/keymanager/src/DevEnv.js index 526c8e824..b5c6db0a3 100644 --- a/apps/keymanager/src/DevEnv.js +++ b/apps/keymanager/src/DevEnv.js @@ -54,8 +54,9 @@ const DevEnv = () => { for (let key in dataset) { element.setAttribute(key, dataset[key]) } - - document.body.appendChild(element) + let wrapper = document.createElement("div") + wrapper.appendChild(element) + document.body.appendChild(wrapper) return () => { console.log(`Dynamic Script Removed: ${url}`) @@ -64,16 +65,15 @@ const DevEnv = () => { }, []) return ( - <> +
{token ? ( -
- Wellcome {token.user.name}{" "} +
+ Welcome {token.user.name}{" "} {" "} )} {showDetails && ( - <> -
-
-            {JSON.stringify(token, null, 2)}
-          
- +
+          {JSON.stringify(token, null, 2)}
+        
)} - +
) } const dev = document.createElement("div") dev.setAttribute( "style", - "position: absolute; right: 0px; top: 0px; z-index: 1000; padding: 15px;" + "position: absolute; right: 0px; top: 0px; z-index: 1000;" ) document.body.prepend(dev)