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 && (
-
-
-
- )}
);
});
diff --git a/components/Chat/ChatInput.tsx b/components/Chat/ChatInput.tsx
index e286573..729702b 100644
--- a/components/Chat/ChatInput.tsx
+++ b/components/Chat/ChatInput.tsx
@@ -1,4 +1,5 @@
import {
+ IconArrowDown,
IconBolt,
IconBrandGoogle,
IconPlayerStop,
@@ -30,15 +31,19 @@ import { VariableModal } from './VariableModal';
interface Props {
onSend: (message: Message, plugin: Plugin | null) => void;
onRegenerate: () => void;
+ onScrollDownClick: () => void;
stopConversationRef: MutableRefObject;
textareaRef: MutableRefObject;
+ showScrollDownButton: boolean;
}
export const ChatInput = ({
onSend,
onRegenerate,
+ onScrollDownClick,
stopConversationRef,
textareaRef,
+ showScrollDownButton
}: Props) => {
const { t } = useTranslation('chat');
@@ -341,6 +346,17 @@ export const ChatInput = ({
)}
+ {showScrollDownButton && (
+
+
+
+ )}
+
{showPromptList && filteredPrompts.length > 0 && (