|
|
@ -95,7 +95,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
event.trigger('resize', [terminalPosition]) |
|
|
|
event.trigger('resize', [terminalPosition]) |
|
|
|
} , [terminalPosition]) |
|
|
|
}, [terminalPosition]) |
|
|
|
|
|
|
|
|
|
|
|
const scrollToBottom = () => { |
|
|
|
const scrollToBottom = () => { |
|
|
|
messagesEndRef.current.scrollIntoView({ behavior: 'smooth' }) |
|
|
|
messagesEndRef.current.scrollIntoView({ behavior: 'smooth' }) |
|
|
@ -217,9 +217,6 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const focusinput = () => { |
|
|
|
const focusinput = () => { |
|
|
|
inputEl.current.focus() |
|
|
|
inputEl.current.focus() |
|
|
|
} |
|
|
|
} |
|
|
|