(js) Improve auto scroll when no host bubble

Closes #522
This commit is contained in:
Baptiste Arnaud
2023-05-26 18:31:13 +02:00
parent 68f0202601
commit 0ca48e4c08
4 changed files with 9 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ import { SinglePictureChoice } from '@/features/blocks/inputs/pictureChoice/Sing
import { MultiplePictureChoice } from '@/features/blocks/inputs/pictureChoice/MultiplePictureChoice'
type Props = {
ref: HTMLDivElement | undefined
block: NonNullable<ChatReply['input']>
hasHostAvatar: boolean
guestAvatar?: Theme['chat']['guestAvatar']
@@ -72,6 +73,7 @@ export const InputChatBlock = (props: Props) => {
<div
class="flex justify-end animate-fade-in gap-2"
data-blockid={props.block.id}
ref={props.ref}
>
{props.hasHostAvatar && (
<div