From edd67213b22bb15c1c50f255d48ff03f9b362db5 Mon Sep 17 00:00:00 2001 From: Danielo Rodriguez Date: Sun, 10 Dec 2023 00:25:15 +0100 Subject: [PATCH] chore: code component --- src/views/FormBuilder.svelte | 7 ++++++- src/views/components/Code.svelte | 17 +++++++++++++++++ src/views/components/TemplateEditor.svelte | 18 +++++++++++++++++- 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 src/views/components/Code.svelte diff --git a/src/views/FormBuilder.svelte b/src/views/FormBuilder.svelte index 18e5a214..836fe944 100644 --- a/src/views/FormBuilder.svelte +++ b/src/views/FormBuilder.svelte @@ -127,7 +127,9 @@
{#if currentTab === "template"} - +
+ +
{:else}
@@ -430,6 +432,9 @@ overflow: hidden; } } + .template { + padding: 1rem; + } .fields { overflow-y: auto; padding: 1rem; diff --git a/src/views/components/Code.svelte b/src/views/components/Code.svelte new file mode 100644 index 00000000..2e8b3ed5 --- /dev/null +++ b/src/views/components/Code.svelte @@ -0,0 +1,17 @@ +
+
+
+ + diff --git a/src/views/components/TemplateEditor.svelte b/src/views/components/TemplateEditor.svelte index 0156ca89..465a4d9a 100644 --- a/src/views/components/TemplateEditor.svelte +++ b/src/views/components/TemplateEditor.svelte @@ -1,4 +1,6 @@