From a70adfd1f98f30188b788ad45661e83ff9215b30 Mon Sep 17 00:00:00 2001 From: simosmik Date: Fri, 20 Feb 2026 07:31:19 +0000 Subject: [PATCH] fix: mobile changes --- src/components/chat/hooks/useChatComposerState.ts | 5 ++++- src/components/chat/tools/components/CollapsibleSection.tsx | 2 +- .../main-content/view/subcomponents/MainContentTitle.tsx | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/components/chat/hooks/useChatComposerState.ts b/src/components/chat/hooks/useChatComposerState.ts index e9e4c9c..6b706e9 100644 --- a/src/components/chat/hooks/useChatComposerState.ts +++ b/src/components/chat/hooks/useChatComposerState.ts @@ -906,8 +906,11 @@ export function useChatComposerState({ const handleInputFocusChange = useCallback( (focused: boolean) => { onInputFocusChange?.(focused); + if (focused) { + setTimeout(() => scrollToBottom(), 150); + } }, - [onInputFocusChange], + [onInputFocusChange, scrollToBottom], ); return { diff --git a/src/components/chat/tools/components/CollapsibleSection.tsx b/src/components/chat/tools/components/CollapsibleSection.tsx index f83135c..0d6615d 100644 --- a/src/components/chat/tools/components/CollapsibleSection.tsx +++ b/src/components/chat/tools/components/CollapsibleSection.tsx @@ -24,7 +24,7 @@ export const CollapsibleSection: React.FC = ({ }) => { return (
- + ) : showChatNewSession ? (
-

{t('mainContent.newSession')}

-
{selectedProject.displayName}
+

{t('mainContent.newSession')}

+
{selectedProject.displayName}
) : (