From 00f6189a42a7878d8b6aa7ae35e70d173ac180a5 Mon Sep 17 00:00:00 2001 From: Aldo Santiago <37028475+santi4o@users.noreply.github.com> Date: Tue, 18 Apr 2023 08:28:19 -0600 Subject: [PATCH] fix: sroll down button overlaping chat input (#564) --- components/Chat/Chat.tsx | 14 +++----------- components/Chat/ChatInput.tsx | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 11 deletions(-) diff --git a/components/Chat/Chat.tsx b/components/Chat/Chat.tsx index 0109d75..e618585 100644 --- a/components/Chat/Chat.tsx +++ b/components/Chat/Chat.tsx @@ -1,4 +1,4 @@ -import { IconArrowDown, IconClearAll, IconSettings } from '@tabler/icons-react'; +import { IconClearAll, IconSettings } from '@tabler/icons-react'; import { MutableRefObject, memo, @@ -492,24 +492,16 @@ export const Chat = memo(({ stopConversationRef }: Props) => { setCurrentMessage(message); handleSend(message, 0, plugin); }} + onScrollDownClick={handleScrollDown} onRegenerate={() => { if (currentMessage) { handleSend(currentMessage, 2, null); } }} + showScrollDownButton={showScrollDownButton} /> > )} - {showScrollDownButton && ( -