From 103924313799acde5cd42869fe70024afb9cc51b Mon Sep 17 00:00:00 2001 From: Ronni Skansing Date: Fri, 31 Oct 2025 09:48:59 +0100 Subject: [PATCH] remove details/editor in editor config Signed-off-by: Ronni Skansing --- .../src/lib/components/editor/Editor.svelte | 536 +++++++++--------- 1 file changed, 253 insertions(+), 283 deletions(-) diff --git a/frontend/src/lib/components/editor/Editor.svelte b/frontend/src/lib/components/editor/Editor.svelte index 14bad8d..b14b511 100644 --- a/frontend/src/lib/components/editor/Editor.svelte +++ b/frontend/src/lib/components/editor/Editor.svelte @@ -35,6 +35,7 @@ let vimStatusBar = null; let isDestroyed = false; let editorContainer = null; + let isExpanded = false; const apiTemplates = [ { label: 'Custom Field 1', text: '{{.CustomField1}}' }, @@ -489,303 +490,272 @@ } return result; }; - - let isDetailsVisible = $$slots.default;
-
-
- -
- {#if $$slots.default} - - - {/if} -
- - - {#if !isDetailsVisible} -
- - - - - - - - - - - - - - - - - - -
- {/if} -
- +
{ + if (isExpanded && e.key === 'Escape') { + e.stopPropagation(); + isExpanded = false; + } + }} + > - {#if $$slots.default} + {#if !isExpanded}
- {#if isDetailsVisible} - + +
+ {/if} + +
+ + + + + + + + + + + + + + + + + + + +
+ + +
+
+
+ {#if localVimMode} +
{/if}
- {/if} -
- -
-
-
- {#if localVimMode} + {#if isPreviewVisible}
+ class="w-1/2 border-2 border-black dark:border-gray-600 bg-white transition-colors duration-200 h-full" + > +
+
{/if}
-
-   -
- {#if isPreviewVisible} -
-
-
- {/if}