From 8d1e6f331b0afa31f301e846709fa5ff7bb1d9d7 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 10 Nov 2024 18:33:21 -0800 Subject: [PATCH] refac: prompt editor styling --- .../workspace/Prompts/PromptEditor.svelte | 84 ++++++++----------- .../workspace/prompts/create/+page.svelte | 4 +- 2 files changed, 40 insertions(+), 48 deletions(-) diff --git a/src/lib/components/workspace/Prompts/PromptEditor.svelte b/src/lib/components/workspace/Prompts/PromptEditor.svelte index a4a18745b..25920800a 100644 --- a/src/lib/components/workspace/Prompts/PromptEditor.svelte +++ b/src/lib/components/workspace/Prompts/PromptEditor.svelte @@ -3,6 +3,7 @@ import Textarea from '$lib/components/common/Textarea.svelte'; import { toast } from 'svelte-sonner'; + import Tooltip from '$lib/components/common/Tooltip.svelte'; export let onSubmit: Function; export let edit = false; @@ -58,65 +59,54 @@
{ submitHandler(); }} >
-
{$i18n.t('Title')}*
+ +
+
+ +
-
- -
-
- -
-
{$i18n.t('Command')}*
- -
-
- / +
+
/
+ +
- -
- -
- {$i18n.t('Only')} - {$i18n.t('alphanumeric characters and hyphens')} - {$i18n.t('are allowed - Activate this command by typing')} " - /{command} - "   - {$i18n.t('to chat input.')} -
+
-
{$i18n.t('Prompt Content')}*
+
{$i18n.t('Prompt Content')}