|
@@ -491,7 +491,7 @@
|
|
|
|
|
|
{#if message.done || siblings.length > 1}
|
|
{#if message.done || siblings.length > 1}
|
|
<div
|
|
<div
|
|
- class=" flex justify-start space-x-1 overflow-x-auto buttons text-gray-700 dark:text-gray-500"
|
|
|
|
|
|
+ class=" flex justify-start overflow-x-auto buttons text-gray-600 dark:text-gray-500"
|
|
>
|
|
>
|
|
{#if siblings.length > 1}
|
|
{#if siblings.length > 1}
|
|
<div class="flex self-center">
|
|
<div class="flex self-center">
|
|
@@ -553,7 +553,7 @@
|
|
<button
|
|
<button
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
editMessageHandler();
|
|
editMessageHandler();
|
|
}}
|
|
}}
|
|
@@ -562,7 +562,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -580,7 +580,7 @@
|
|
<button
|
|
<button
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition copy-response-button"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition copy-response-button"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
copyToClipboard(message.content);
|
|
copyToClipboard(message.content);
|
|
}}
|
|
}}
|
|
@@ -589,7 +589,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -607,8 +607,8 @@
|
|
<button
|
|
<button
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded {message?.annotation
|
|
|
|
- ?.rating === 1
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg {message
|
|
|
|
+ ?.annotation?.rating === 1
|
|
? 'bg-gray-100 dark:bg-gray-800'
|
|
? 'bg-gray-100 dark:bg-gray-800'
|
|
: ''} dark:hover:text-white hover:text-black transition"
|
|
: ''} dark:hover:text-white hover:text-black transition"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
@@ -625,7 +625,7 @@
|
|
<svg
|
|
<svg
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
fill="none"
|
|
fill="none"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
stroke-linecap="round"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
stroke-linejoin="round"
|
|
@@ -642,8 +642,8 @@
|
|
<button
|
|
<button
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded {message?.annotation
|
|
|
|
- ?.rating === -1
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg {message
|
|
|
|
+ ?.annotation?.rating === -1
|
|
? 'bg-gray-100 dark:bg-gray-800'
|
|
? 'bg-gray-100 dark:bg-gray-800'
|
|
: ''} dark:hover:text-white hover:text-black transition"
|
|
: ''} dark:hover:text-white hover:text-black transition"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
@@ -659,7 +659,7 @@
|
|
<svg
|
|
<svg
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
fill="none"
|
|
fill="none"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
stroke-linecap="round"
|
|
stroke-linecap="round"
|
|
stroke-linejoin="round"
|
|
stroke-linejoin="round"
|
|
@@ -678,7 +678,7 @@
|
|
id="speak-button-{message.id}"
|
|
id="speak-button-{message.id}"
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
if (!loadingSpeech) {
|
|
if (!loadingSpeech) {
|
|
toggleSpeakMessage(message);
|
|
toggleSpeakMessage(message);
|
|
@@ -725,7 +725,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -740,7 +740,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -759,7 +759,7 @@
|
|
<button
|
|
<button
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
if (!generatingImage) {
|
|
if (!generatingImage) {
|
|
generateImage(message);
|
|
generateImage(message);
|
|
@@ -806,7 +806,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -826,7 +826,7 @@
|
|
<button
|
|
<button
|
|
class=" {isLastMessage
|
|
class=" {isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition whitespace-pre-wrap"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition whitespace-pre-wrap"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
console.log(message);
|
|
console.log(message);
|
|
}}
|
|
}}
|
|
@@ -836,7 +836,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -856,7 +856,7 @@
|
|
type="button"
|
|
type="button"
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition regenerate-response-button"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button"
|
|
on:click={() => {
|
|
on:click={() => {
|
|
continueGeneration();
|
|
continueGeneration();
|
|
}}
|
|
}}
|
|
@@ -865,7 +865,7 @@
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|
|
@@ -888,14 +888,14 @@
|
|
type="button"
|
|
type="button"
|
|
class="{isLastMessage
|
|
class="{isLastMessage
|
|
? 'visible'
|
|
? 'visible'
|
|
- : 'invisible group-hover:visible'} p-1 rounded dark:hover:text-white hover:text-black transition regenerate-response-button"
|
|
|
|
|
|
+ : 'invisible group-hover:visible'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition regenerate-response-button"
|
|
on:click={regenerateResponse}
|
|
on:click={regenerateResponse}
|
|
>
|
|
>
|
|
<svg
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
fill="none"
|
|
fill="none"
|
|
viewBox="0 0 24 24"
|
|
viewBox="0 0 24 24"
|
|
- stroke-width="2"
|
|
|
|
|
|
+ stroke-width="2.3"
|
|
stroke="currentColor"
|
|
stroke="currentColor"
|
|
class="w-4 h-4"
|
|
class="w-4 h-4"
|
|
>
|
|
>
|