feat: resizable input box (#246, #266)

This commit is contained in:
josc146
2023-04-27 15:29:56 +08:00
parent 9fa91b0e21
commit 7c5046ccff
3 changed files with 67 additions and 22 deletions
+2 -1
View File
@@ -365,6 +365,8 @@ function ConversationCard(props) {
</div>
<InputBox
enabled={isReady}
port={port}
reverseResizeDir={props.pageMode}
onSubmit={(question) => {
const newQuestion = new ConversationItemData('question', question + '\n<hr/>')
const newAnswer = new ConversationItemData(
@@ -382,7 +384,6 @@ function ConversationCard(props) {
updateAnswer(e, false, 'error')
}
}}
port={port}
/>
</div>
)