Skip to content

Commit 8e3a2b5

Browse files
committed
(fix) add textarea offset height with img
1 parent 8e40415 commit 8e3a2b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ChatWindow/MessagesList.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ export default {
426426
},
427427
resizeTextarea(textarea) {
428428
textarea.style.height = 0
429-
textarea.style.height = textarea.scrollHeight + 'px'
429+
const offset = this.imageFile ? 2 : 0
430+
textarea.style.height = textarea.scrollHeight + offset + 'px'
430431
},
431432
addEmoji(emoji) {
432433
this.message += emoji.icon

0 commit comments

Comments
 (0)