From 19a23a5b7da52f6627b468d165a32bf44f853f30 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 16 Nov 2024 20:53:14 -0800 Subject: [PATCH] refac: prompt editor styling --- .../workspace/Prompts/PromptEditor.svelte | 30 ++++++++++++++----- 1 file changed, 23 insertions(+), 7 deletions(-) diff --git a/src/lib/components/workspace/Prompts/PromptEditor.svelte b/src/lib/components/workspace/Prompts/PromptEditor.svelte index 042a25939..61ec69e4e 100644 --- a/src/lib/components/workspace/Prompts/PromptEditor.svelte +++ b/src/lib/components/workspace/Prompts/PromptEditor.svelte @@ -5,6 +5,8 @@ import { toast } from 'svelte-sonner'; import Tooltip from '$lib/components/common/Tooltip.svelte'; import AccessControl from '../common/AccessControl.svelte'; + import LockClosed from '$lib/components/icons/LockClosed.svelte'; + import AccessControlModal from '../common/AccessControlModal.svelte'; export let onSubmit: Function; export let edit = false; @@ -20,6 +22,8 @@ let accessControl = null; + let showAccessControlModal = false; + $: if (!edit) { command = title !== '' ? `${title.replace(/\s+/g, '-').toLowerCase()}` : ''; } @@ -64,6 +68,8 @@ }); + +
-
+
+ +
+ +
@@ -141,12 +163,6 @@
-
-
- -
-
-