|
@@ -490,7 +490,7 @@
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
<form
|
|
<form
|
|
- class=" flex flex-col relative w-full rounded-xl border dark:border-gray-700 bg-white dark:bg-gray-900 dark:text-gray-100"
|
|
|
|
|
|
+ class=" flex flex-col relative w-full rounded-3xl px-1.5 border border-gray-100 dark:border-gray-850 bg-white dark:bg-gray-900 dark:text-gray-100"
|
|
on:submit|preventDefault={() => {
|
|
on:submit|preventDefault={() => {
|
|
submitPrompt(prompt, user);
|
|
submitPrompt(prompt, user);
|
|
}}
|
|
}}
|
|
@@ -633,9 +633,9 @@
|
|
|
|
|
|
<div class=" flex">
|
|
<div class=" flex">
|
|
{#if fileUploadEnabled}
|
|
{#if fileUploadEnabled}
|
|
- <div class=" self-end mb-2 ml-1.5">
|
|
|
|
|
|
+ <div class=" self-center ml-1">
|
|
<button
|
|
<button
|
|
- class=" text-gray-600 dark:text-gray-200 transition rounded-lg p-1 ml-1"
|
|
|
|
|
|
+ class="bg-gray-50 hover:bg-gray-100 text-gray-800 dark:bg-gray-850 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-1.5"
|
|
type="button"
|
|
type="button"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
filesInputElement.click();
|
|
filesInputElement.click();
|
|
@@ -643,14 +643,12 @@
|
|
>
|
|
>
|
|
<svg
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
- viewBox="0 0 20 20"
|
|
|
|
|
|
+ viewBox="0 0 16 16"
|
|
fill="currentColor"
|
|
fill="currentColor"
|
|
- class="w-5 h-5"
|
|
|
|
|
|
+ class="w-[1.2rem] h-[1.2rem]"
|
|
>
|
|
>
|
|
<path
|
|
<path
|
|
- fill-rule="evenodd"
|
|
|
|
- d="M15.621 4.379a3 3 0 00-4.242 0l-7 7a3 3 0 004.241 4.243h.001l.497-.5a.75.75 0 011.064 1.057l-.498.501-.002.002a4.5 4.5 0 01-6.364-6.364l7-7a4.5 4.5 0 016.368 6.36l-3.455 3.553A2.625 2.625 0 119.52 9.52l3.45-3.451a.75.75 0 111.061 1.06l-3.45 3.451a1.125 1.125 0 001.587 1.595l3.454-3.553a3 3 0 000-4.242z"
|
|
|
|
- clip-rule="evenodd"
|
|
|
|
|
|
+ d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"
|
|
/>
|
|
/>
|
|
</svg>
|
|
</svg>
|
|
</button>
|
|
</button>
|
|
@@ -659,7 +657,7 @@
|
|
|
|
|
|
<textarea
|
|
<textarea
|
|
id="chat-textarea"
|
|
id="chat-textarea"
|
|
- class=" dark:bg-gray-900 dark:text-gray-100 outline-none w-full py-3 px-2 {fileUploadEnabled
|
|
|
|
|
|
+ class=" dark:bg-gray-900 dark:text-gray-100 outline-none w-full py-3 px-3 {fileUploadEnabled
|
|
? ''
|
|
? ''
|
|
: ' pl-4'} rounded-xl resize-none h-[48px]"
|
|
: ' pl-4'} rounded-xl resize-none h-[48px]"
|
|
placeholder={chatInputPlaceholder !== ''
|
|
placeholder={chatInputPlaceholder !== ''
|
|
@@ -869,7 +867,7 @@
|
|
<button
|
|
<button
|
|
class="{prompt !== ''
|
|
class="{prompt !== ''
|
|
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
|
|
? 'bg-black text-white hover:bg-gray-900 dark:bg-white dark:text-black dark:hover:bg-gray-100 '
|
|
- : 'text-white bg-gray-100 dark:text-gray-900 dark:bg-gray-800 disabled'} transition rounded-lg p-1 mr-0.5 w-7 h-7 self-center"
|
|
|
|
|
|
+ : 'text-white bg-gray-100 dark:text-gray-900 dark:bg-gray-800 disabled'} transition rounded-full p-1 w-7 h-7 self-center"
|
|
type="submit"
|
|
type="submit"
|
|
disabled={prompt === ''}
|
|
disabled={prompt === ''}
|
|
>
|
|
>
|
|
@@ -877,7 +875,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 16 16"
|
|
viewBox="0 0 16 16"
|
|
fill="currentColor"
|
|
fill="currentColor"
|
|
- class="w-4.5 h-4.5 mx-auto"
|
|
|
|
|
|
+ class=" mx-auto"
|
|
>
|
|
>
|
|
<path
|
|
<path
|
|
fill-rule="evenodd"
|
|
fill-rule="evenodd"
|
|
@@ -888,7 +886,7 @@
|
|
</button>
|
|
</button>
|
|
{:else}
|
|
{:else}
|
|
<button
|
|
<button
|
|
- class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-lg p-1.5"
|
|
|
|
|
|
+ class="bg-white hover:bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-white dark:hover:bg-gray-800 transition rounded-full p-1.5"
|
|
on:click={stopResponse}
|
|
on:click={stopResponse}
|
|
>
|
|
>
|
|
<svg
|
|
<svg
|