Bugfix/scroll (#1748)

This commit is contained in:
pablodanswer 2024-06-30 12:58:57 -07:00 committed by GitHub
parent 415960564d
commit 3e45a41617
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1508,8 +1508,22 @@ export function ChatPage({
</div>
</div>
<div className="absolute bottom-0 z-10 w-full">
<div className="w-full pb-4">
<div
ref={inputRef}
className="absolute bottom-0 z-10 w-full"
>
<div className="w-full relative pb-4">
{aboveHorizon && (
<div className="pointer-events-none w-full bg-transparent flex sticky justify-center">
<button
onClick={() => clientScrollToBottom(true)}
className="p-1 pointer-events-auto rounded-2xl bg-background-strong border border-border mb-2 mx-auto "
>
<FiArrowDown size={18} />
</button>
</div>
)}
<ChatInputBar
onSetSelectedAssistant={(
alternativeAssistant: Persona | null