diff --git a/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx b/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx index 7607d0114..802337dde 100644 --- a/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx +++ b/src/frontend/src/components/bs-comp/chatComponent/ChatInput.tsx @@ -11,6 +11,7 @@ import { useTranslation } from "react-i18next"; import GuideQuestions from "./GuideQuestions"; import { useMessageStore } from "./messageStore"; import { formatDate } from "@/util/utils"; +import { StopIcon } from "@radix-ui/react-icons"; export default function ChatInput({ clear, form, stop, questions, inputForm, wsUrl, onBeforSend }) { const { toast } = useToast() @@ -290,11 +291,14 @@ export default function ChatInput({ clear, form, stop, questions, inputForm, wsU {/* send */}
-
{ !inputLock.locked && handleSendClick() }} - >
+ onClick={() => { !inputLock.locked && handleSendClick() }}> + +
} + {!stoped && { setStoped(true); sendWsMsg({ "action": "stop" }); }}/>} {/* question */} - {/* stop */} - { - stop &&
- -
- }

{appConfig.dialogTips}