refac: styling

This commit is contained in:
Timothy J. Baek 2024-04-30 15:17:05 -07:00
parent 1157b8e12d
commit 595ebd11ac
2 changed files with 2 additions and 1 deletions

View file

@ -15,7 +15,7 @@
{#each prompts as prompt, promptIdx} {#each prompts as prompt, promptIdx}
<div class="shrink-0"> <div class="shrink-0">
<button <button
class="flex flex-1 shrink-0 w-60 justify-between h-full px-4 py-2.5 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 rounded-2xl transition group" class="flex flex-1 shrink-0 w-64 justify-between h-full px-5 py-3 bg-gray-50 hover:bg-gray-100 dark:bg-gray-850 dark:hover:bg-gray-800 rounded-3xl transition group"
on:click={() => { on:click={() => {
submitPrompt(prompt.content); submitPrompt(prompt.content);
}} }}

View file

@ -291,6 +291,7 @@
chatTextAreaElement.style.height = ''; chatTextAreaElement.style.height = '';
chatTextAreaElement.style.height = Math.min(chatTextAreaElement.scrollHeight, 200) + 'px'; chatTextAreaElement.style.height = Math.min(chatTextAreaElement.scrollHeight, 200) + 'px';
chatTextAreaElement.focus();
} }
}} }}
/> />