From d3d43dcc4138f7ee2f937f6de64b9f5b082384cc Mon Sep 17 00:00:00 2001 From: Jean Schmitz Date: Tue, 6 Feb 2024 10:54:48 +0100 Subject: [PATCH] Fixed problems with display of user messages Fixed scrollbar not following chat flow problem --- frontend/src/components/chat/ChatContainer.vue | 18 ++++++++++-------- frontend/src/components/chat/ChatControl.vue | 6 ++++-- frontend/src/components/chat/ChatMessage.vue | 3 --- .../src/components/chat/ChatMessageInput.vue | 4 ++-- frontend/src/components/thread/ThreadEntry.vue | 4 ++-- frontend/src/store/chat-store.ts | 16 +++++++++++++--- frontend/src/store/to/thread.ts | 14 +++++++++++--- 7 files changed, 42 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/chat/ChatContainer.vue b/frontend/src/components/chat/ChatContainer.vue index 206bc8b1..d3893093 100644 --- a/frontend/src/components/chat/ChatContainer.vue +++ b/frontend/src/components/chat/ChatContainer.vue @@ -1,5 +1,5 @@ + + @@ -77,8 +77,10 @@ export default { } }, chunkUpdateReceived() { - // Scroll to bottom + console.log('Chunk Update Received!'); + // Scroll $refs.entries to bottom this.$refs.entries.scrollTop = this.$refs.entries.scrollHeight; + //this.$refs.entries.scrollTop = this.$refs.entries.scrollHeight; }, }, }; diff --git a/frontend/src/components/chat/ChatControl.vue b/frontend/src/components/chat/ChatControl.vue index 4a763c7a..2474300f 100644 --- a/frontend/src/components/chat/ChatControl.vue +++ b/frontend/src/components/chat/ChatControl.vue @@ -1,5 +1,5 @@