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}