فهرست منبع

refac: styling

Timothy J. Baek 1 سال پیش
والد
کامیت
595ebd11ac
2فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 1
      src/lib/components/chat/MessageInput/Suggestions.svelte
  2. 1 0
      src/lib/components/chat/Messages.svelte

+ 1 - 1
src/lib/components/chat/MessageInput/Suggestions.svelte

@@ -15,7 +15,7 @@
 		{#each prompts as prompt, promptIdx}
 			<div class="shrink-0">
 				<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={() => {
 						submitPrompt(prompt.content);
 					}}

+ 1 - 0
src/lib/components/chat/Messages.svelte

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