From ac9e02233e21e3b15174f6dea56298c9b00ad351 Mon Sep 17 00:00:00 2001 From: Alexander Craggs Date: Wed, 19 Aug 2020 10:57:49 +0100 Subject: [PATCH 1/9] Enforce that the debug menu is always on the top of the screen --- src/client/debug/Debug.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/debug/Debug.svelte b/src/client/debug/Debug.svelte index 16cd28277..57721c7c3 100644 --- a/src/client/debug/Debug.svelte +++ b/src/client/debug/Debug.svelte @@ -59,6 +59,8 @@ font-size: 14px; box-sizing: border-box; opacity: 0.9; + /* we want the debug panel to be above any other elements */ + z-index: 99999; } .pane { From 78df8d49e25de3d03c5c977da4afb0e6dad7b4bd Mon Sep 17 00:00:00 2001 From: Alexander Craggs Date: Wed, 19 Aug 2020 12:11:05 +0100 Subject: [PATCH 2/9] use a json-tree instead of a JSON.stirngify string. --- package-lock.json | 5 +++++ package.json | 1 + src/client/debug/main/Main.svelte | 16 ++++++++++++---- 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 707dd9754..17e6fe874 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14582,6 +14582,11 @@ "integrity": "sha512-i43a3nPJufH3M+LQn71Li1f6PoA4Vx+8pV6fGnoFczwA6v8OT5o7B0LBf7LKViG9BVJNvFxGube4t/KQBN7rzg==", "dev": true }, + "svelte-json-tree-auto": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/svelte-json-tree-auto/-/svelte-json-tree-auto-0.1.0.tgz", + "integrity": "sha512-XDUBTV/BNStd/9WJDndzxQ9KqhoNoZBxkOo1H1d29qKW+YxG6eRrt2Yp0Cv/6KLKDtFLhJ9huJpqpOSe4yMG0Q==" + }, "svgo": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/svgo/-/svgo-1.3.0.tgz", diff --git a/package.json b/package.json index 0490b45e6..26d8c6f44 100644 --- a/package.json +++ b/package.json @@ -165,6 +165,7 @@ "socket.io": "^2.1.1", "socket.io-client": "^2.3.0", "svelte": "^3.24.0", + "svelte-json-tree-auto": "^0.1.0", "ts-toolbelt": "^6.3.6", "uuid": "3.2.1" }, diff --git a/src/client/debug/main/Main.svelte b/src/client/debug/main/Main.svelte index 760194b44..8d6e07388 100644 --- a/src/client/debug/main/Main.svelte +++ b/src/client/debug/main/Main.svelte @@ -1,6 +1,7 @@