fix: dock the thread reply input below the scroll area instead of inside it (#27768)

This commit is contained in:
G30 2026-08-12 03:06:20 -04:00 committed by GitHub
parent 104a0f2f11
commit 783e87c0c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -188,7 +188,7 @@
</div>
</div>
<div class=" max-h-full w-full overflow-y-auto" bind:this={messagesContainerElement}>
<div class="flex-1 min-h-0 w-full overflow-y-auto" bind:this={messagesContainerElement}>
{#if messages !== null}
<Messages
id={threadId}
@ -225,25 +225,25 @@
<Spinner />
</div>
{/if}
</div>
<div class=" pb-[1rem] px-2.5 w-full">
<MessageInput
bind:replyToMessage
bind:chatInputElement
id={threadId}
{channel}
disabled={!channel?.write_access}
placeholder={!channel?.write_access
? $i18n.t('You do not have permission to send messages in this thread.')
: $i18n.t('Reply to thread...')}
typingUsersClassName="from-gray-50 dark:from-gray-850"
{typingUsers}
userSuggestions={true}
channelSuggestions={true}
{onChange}
onSubmit={submitHandler}
/>
</div>
<div class=" pb-[1rem] px-2.5 w-full">
<MessageInput
bind:replyToMessage
bind:chatInputElement
id={threadId}
{channel}
disabled={!channel?.write_access}
placeholder={!channel?.write_access
? $i18n.t('You do not have permission to send messages in this thread.')
: $i18n.t('Reply to thread...')}
typingUsersClassName="from-gray-50 dark:from-gray-850"
{typingUsers}
userSuggestions={true}
channelSuggestions={true}
{onChange}
onSubmit={submitHandler}
/>
</div>
</div>
{/if}