improve conversationCard style

This commit is contained in:
josc146
2023-06-12 21:38:26 +08:00
parent 4a2ad65aea
commit 454e457656
3 changed files with 3 additions and 13 deletions
+1 -2
View File
@@ -49,13 +49,12 @@ export function InputBox({ onSubmit, enabled, port, reverseResizeDir }) {
const handleKeyDownOrClick = (e) => {
e.stopPropagation()
if (e.type === 'click' || (e.keyCode === 13 && e.shiftKey === false)) {
e.preventDefault()
if (enabled) {
e.preventDefault()
if (!value) return
onSubmit(value)
setValue('')
} else {
e.preventDefault()
port.postMessage({ stop: true })
}
}