temporary fix for not showing discussion

This commit is contained in:
andzejsp 2023-05-06 21:33:19 +03:00
parent 0a2ba3717f
commit 5e6e68f082

View File

@ -108,16 +108,16 @@
<div class="overflow-y-scroll flex flex-col no-scrollbar flex-grow " id="messages-list"> <div class="overflow-y-scroll flex flex-col no-scrollbar flex-grow " id="messages-list">
<!-- CHAT AREA --> <!-- CHAT AREA -->
<div> <div class="flex flex-col flex-grow">
<Message v-for="(msg, index) in discussionArr" :key="index" :message="msg" <Message v-for="(msg, index) in discussionArr" :key="index" :message="msg"
@click="scrollToElement($event.target)" :id="'msg-' + msg.id" ref="messages" /> @click="scrollToElement($event.target)" :id="'msg-' + msg.id" ref="messages" />
<WelcomeComponent v-if="discussionArr.length < 1" /> <WelcomeComponent v-if="!currentDiscussion.id" />
</div> </div>
<div class=" sticky bottom-0"> <div class=" sticky bottom-0">
<ChatBox v-if="discussionArr.length > 0" @messageSentEvent="sendMsg" :loading="isGenerating" <ChatBox v-if="currentDiscussion.id" @messageSentEvent="sendMsg" :loading="isGenerating"
@stopGenerating="stopGenerating" /> @stopGenerating="stopGenerating" />
</div> </div>