diff --git a/src/renderer/src/components/TopView/index.tsx b/src/renderer/src/components/TopView/index.tsx index 4638e0db02..91d5cc42cd 100644 --- a/src/renderer/src/components/TopView/index.tsx +++ b/src/renderer/src/components/TopView/index.tsx @@ -65,7 +65,7 @@ const TopViewContainer: React.FC = ({ children }) => { const FullScreenContainer: React.FC = useCallback(({ children }) => { return ( - + {children} diff --git a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx index e127cc375d..83b3373093 100644 --- a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx +++ b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx @@ -654,7 +654,9 @@ const Inputbar: FC = ({ assistant: _assistant, setActiveTopic, topic }) = }, [addNewTopic, onQuote]) useEffect(() => { - textareaRef.current?.focus() + if (!document.querySelector('.topview-fullscreen-container')) { + textareaRef.current?.focus() + } }, [assistant, topic]) useEffect(() => {