From b1b8b9605d804793f557c92e2d7b1f659d8c99f0 Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Mon, 5 Dec 2022 12:27:41 +0100 Subject: Move IDE components into its own store, fix some state issues, change state update method to push instead of pull --- src_frontend/Components/Editor/Editor.svelte | 306 ++++----------------------- src_frontend/Components/Editor/Output.svelte | 28 ++- 2 files changed, 55 insertions(+), 279 deletions(-) (limited to 'src_frontend/Components') diff --git a/src_frontend/Components/Editor/Editor.svelte b/src_frontend/Components/Editor/Editor.svelte index 36390ce..511eef7 100644 --- a/src_frontend/Components/Editor/Editor.svelte +++ b/src_frontend/Components/Editor/Editor.svelte @@ -1,17 +1,6 @@ - @@ -56,7 +65,8 @@ height: 100%; width: 100%; box-sizing: border-box; - display: grid; + display: flex; + flex-direction: column; } pre { height: 100%; @@ -83,9 +93,9 @@
- {#if lagAmount > 3} + {#if lagAmount > 1.5} - Output cannot keep up, and is {lagAmount} chunks behind realtime. + Output cannot keep up, and is around {lagAmount.toFixed(1)}s behind realtime. {/if}
-- 
cgit v1.2.3