From 8ad52f0fccf3e3a93c5e1d8f37c8372c5a75d361 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Mon, 10 Jun 2024 16:02:23 -0700 Subject: [PATCH] feat: code editor --- src/app.css | 9 +++ src/lib/components/common/CodeEditor.svelte | 75 ++++++++++++++++++--- 2 files changed, 73 insertions(+), 11 deletions(-) diff --git a/src/app.css b/src/app.css index f7c14bcbd..85e53d83c 100644 --- a/src/app.css +++ b/src/app.css @@ -24,6 +24,15 @@ math { margin-top: 1rem; } +.cm-editor { + height: 100%; + width: 100%; +} + +.cm-editor.cm-focused { + outline: none; +} + .hljs { @apply rounded-lg; } diff --git a/src/lib/components/common/CodeEditor.svelte b/src/lib/components/common/CodeEditor.svelte index 963e99519..4b8c09be0 100644 --- a/src/lib/components/common/CodeEditor.svelte +++ b/src/lib/components/common/CodeEditor.svelte @@ -1,7 +1,7 @@ -
+