|
@@ -37,7 +37,7 @@
|
|
|
<div v-for="conv in conversations" :class="{
|
|
<div v-for="conv in conversations" :class="{
|
|
|
'btn btn-ghost justify-start font-normal': true,
|
|
'btn btn-ghost justify-start font-normal': true,
|
|
|
'btn-active': conv.id === viewingConvId,
|
|
'btn-active': conv.id === viewingConvId,
|
|
|
- }" @click="setViewingConv(conv.id)">
|
|
|
|
|
|
|
+ }" @click="setViewingConv(conv.id)" dir="auto">
|
|
|
<span class="truncate">{{ conv.messages[0].content }}</span>
|
|
<span class="truncate">{{ conv.messages[0].content }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="text-center text-xs opacity-40 mt-auto mx-4">
|
|
<div class="text-center text-xs opacity-40 mt-auto mx-4">
|
|
@@ -156,6 +156,7 @@
|
|
|
@keydown.enter.shift.exact.prevent="inputMsg += '\n'"
|
|
@keydown.enter.shift.exact.prevent="inputMsg += '\n'"
|
|
|
:disabled="isGenerating"
|
|
:disabled="isGenerating"
|
|
|
id="msg-input"
|
|
id="msg-input"
|
|
|
|
|
+ dir="auto"
|
|
|
></textarea>
|
|
></textarea>
|
|
|
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
|
|
<button v-if="!isGenerating" class="btn btn-primary ml-2" @click="sendMessage" :disabled="inputMsg.length === 0">Send</button>
|
|
|
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
|
|
<button v-else class="btn btn-neutral ml-2" @click="stopGeneration">Stop</button>
|
|
@@ -244,7 +245,7 @@
|
|
|
<div :class="{
|
|
<div :class="{
|
|
|
'chat-bubble markdown': true,
|
|
'chat-bubble markdown': true,
|
|
|
'chat-bubble-base-300': msg.role !== 'user',
|
|
'chat-bubble-base-300': msg.role !== 'user',
|
|
|
- }">
|
|
|
|
|
|
|
+ }" dir="auto">
|
|
|
<!-- textarea for editing message -->
|
|
<!-- textarea for editing message -->
|
|
|
<template v-if="editingContent !== null">
|
|
<template v-if="editingContent !== null">
|
|
|
<textarea
|
|
<textarea
|