Skip to content

Commit 22a9143

Browse files
joeizangyann300
authored andcommitted
maximize on focus in input field
1 parent 209d3a0 commit 22a9143

File tree

1 file changed

+4
-1
lines changed
  • libs/remix-ui/remix-ai-assistant/src/components

1 file changed

+4
-1
lines changed

libs/remix-ui/remix-ai-assistant/src/components/prompt.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface PromptAreaProps {
3030
aiContextGroupList: groupListType[]
3131
aiAssistantGroupList: groupListType[]
3232
textareaRef?: React.RefObject<HTMLTextAreaElement>
33+
maximizePanel: () => Promise<void>
3334
}
3435

3536
const _paq = (window._paq = window._paq || [])
@@ -57,7 +58,8 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
5758
modelBtnRef,
5859
aiContextGroupList,
5960
aiAssistantGroupList,
60-
textareaRef
61+
textareaRef,
62+
maximizePanel
6163
}) => {
6264

6365
return (
@@ -120,6 +122,7 @@ export const PromptArea: React.FC<PromptAreaProps> = ({
120122
disabled={isStreaming}
121123
onFocus={() => {
122124
dispatchActivity('typing', input)
125+
maximizePanel()
123126
}}
124127
onChange={e => {
125128
dispatchActivity('typing', e.target.value)

0 commit comments

Comments
 (0)