From a4fe34665b9443946098a69768b3e14b70765ed1 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Thu, 26 Oct 2023 12:58:20 +0700 Subject: [PATCH] Fix bugs avoid chat body scroll horizontal --- web/app/_components/InputToolbar/index.tsx | 2 +- web/helpers/ModalWrapper.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/web/app/_components/InputToolbar/index.tsx b/web/app/_components/InputToolbar/index.tsx index 6be6272f8..c0d23edc0 100644 --- a/web/app/_components/InputToolbar/index.tsx +++ b/web/app/_components/InputToolbar/index.tsx @@ -20,10 +20,10 @@ import { userConversationsAtom } from '@helpers/atoms/Conversation.atom' const InputToolbar: React.FC = () => { const activeModel = useAtomValue(activeAssistantModelAtom) const currentConvoState = useAtomValue(currentConvoStateAtom) - const conversations = useAtomValue(userConversationsAtom) const { inputState, currentConvo } = useGetInputState() const { requestCreateConvo } = useCreateConversation() const { startModel } = useStartStopModel() + const conversations = useAtomValue(userConversationsAtom) const activeConvoId = useAtomValue(getActiveConvoIdAtom) diff --git a/web/helpers/ModalWrapper.tsx b/web/helpers/ModalWrapper.tsx index 0338debe6..a9c799c89 100644 --- a/web/helpers/ModalWrapper.tsx +++ b/web/helpers/ModalWrapper.tsx @@ -5,8 +5,8 @@ import ConfirmDeleteConversationModal from '@/_components/ConfirmDeleteConversat import ConfirmDeleteModelModal from '@/_components/ConfirmDeleteModelModal' import ConfirmSignOutModal from '@/_components/ConfirmSignOutModal' import MobileMenuPane from '@/_components/MobileMenuPane' -import ModalNoActiveModel from '@/_components/ModalNoActiveModel' import SwitchingModelConfirmationModal from '@/_components/SwitchingModelConfirmationModal' +import ModalNoActiveModel from '@/_components/ModalNoActiveModel' import { ReactNode } from 'react' type Props = { @@ -23,6 +23,7 @@ export const ModalWrapper: React.FC = ({ children }) => ( + {children} )