From 24e7ae8767d13db5978d4cb3d109466f18c2e5b0 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 22 Oct 2024 03:46:24 -0700 Subject: [PATCH] refac: multi response styling --- src/lib/components/chat/Messages/MultiResponseMessages.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Messages/MultiResponseMessages.svelte b/src/lib/components/chat/Messages/MultiResponseMessages.svelte index 48da89d86..a4a9fded3 100644 --- a/src/lib/components/chat/Messages/MultiResponseMessages.svelte +++ b/src/lib/components/chat/Messages/MultiResponseMessages.svelte @@ -157,7 +157,7 @@ const messageElement = document.getElementById(`message-${messageId}`); console.log(messageElement); if (messageElement) { - messageElement.scrollIntoView({ behavior: 'smooth', block: 'center' }); + messageElement.scrollIntoView({ block: 'center' }); } }); @@ -179,7 +179,7 @@ class=" snap-center w-full max-w-full m-1 border {history.messages[messageId] ?.modelIdx == modelIdx ? `border-gray-100 dark:border-gray-800 border-[1.5px] ${ - $mobile ? 'min-w-full' : 'min-w-[32rem]' + $mobile ? 'min-w-full' : 'min-w-80' }` : `border-gray-50 dark:border-gray-850 border-dashed ${ $mobile ? 'min-w-full' : 'min-w-80'