Browse Source

enh: allow new lines in default prompts

Timothy J. Baek 7 months ago
parent
commit
fa8d7bd9c6
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/lib/components/admin/Settings/Interface.svelte

+ 3 - 2
src/lib/components/admin/Settings/Interface.svelte

@@ -307,9 +307,10 @@
 									/>
 								</div>
 
-								<input
-									class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r border-gray-100 dark:border-gray-800"
+								<textarea
+									class="px-3 py-1.5 text-xs w-full bg-transparent outline-none border-r border-gray-100 dark:border-gray-800 resize-none"
 									placeholder={$i18n.t('Prompt (e.g. Tell me a fun fact about the Roman Empire)')}
+									rows="3"
 									bind:value={prompt.content}
 								/>
 							</div>