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

This commit is contained in:
G30 authored and GitHub committed 2026-08-12 02:06:20 -05:00
1 parent 104a0f2f11
commit 783e87c0c5
1 file changed
+19 -19
+19 -19
View File
@@ -188,7 +188,7 @@
</div> </div>
</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} {#if messages !== null}
<Messages <Messages
id={threadId} id={threadId}
@@ -225,25 +225,25 @@
<Spinner /> <Spinner />
</div> </div>
{/if} {/if}
</div>
<div class=" pb-[1rem] px-2.5 w-full"> <div class=" pb-[1rem] px-2.5 w-full">
<MessageInput <MessageInput
bind:replyToMessage bind:replyToMessage
bind:chatInputElement bind:chatInputElement
id={threadId} id={threadId}
{channel} {channel}
disabled={!channel?.write_access} disabled={!channel?.write_access}
placeholder={!channel?.write_access placeholder={!channel?.write_access
? $i18n.t('You do not have permission to send messages in this thread.') ? $i18n.t('You do not have permission to send messages in this thread.')
: $i18n.t('Reply to thread...')} : $i18n.t('Reply to thread...')}
typingUsersClassName="from-gray-50 dark:from-gray-850" typingUsersClassName="from-gray-50 dark:from-gray-850"
{typingUsers} {typingUsers}
userSuggestions={true} userSuggestions={true}
channelSuggestions={true} channelSuggestions={true}
{onChange} {onChange}
onSubmit={submitHandler} onSubmit={submitHandler}
/> />
</div>
</div> </div>
</div> </div>
{/if} {/if}