This commit is contained in:
Timothy J. Baek 2024-09-18 03:19:32 +02:00
parent 67f704c98d
commit e723b2a4c6
3 changed files with 3 additions and 7 deletions

View File

@ -161,7 +161,7 @@
const messageElement = document.getElementById(`message-${message.id}`);
if (messageElement) {
messageElement.scrollIntoView({ behavior: 'smooth', block: 'center' });
messageElement.scrollIntoView({ behavior: 'smooth' });
}
};

View File

@ -337,11 +337,7 @@
<div class="w-full pt-2">
{#key chatId}
{#each messages as message, messageIdx (message.id)}
<div
class=" w-full {messageIdx === messages.length - 1
? ' pb-12'
: ''} message-{message.id}"
>
<div class=" w-full {messageIdx === messages.length - 1 ? ' pb-12' : ''}">
<div
class="flex flex-col justify-between px-5 mb-3 {($settings?.widescreenMode ?? null)
? 'max-w-full'

View File

@ -62,7 +62,7 @@
};
</script>
<div class=" flex w-full user-message" dir={$settings.chatDirection}>
<div class=" flex w-full user-message" dir={$settings.chatDirection} id="message-{message.id}">
{#if !($settings?.chatBubble ?? true)}
<ProfileImage
src={message.user