micro fixs

This commit is contained in:
RockYang 2024-05-27 17:39:17 +08:00
parent 02faff461a
commit 1b0938b33f
2 changed files with 4 additions and 1 deletions

View File

@ -266,6 +266,9 @@ $borderColor = #4676d0;
font-size 14px font-size 14px
background none background none
resize: none resize: none
white-space: pre-wrap; /* */
word-wrap: break-word; /* */
overflow-wrap: break-word; /* */
} }
.send-btn { .send-btn {

View File

@ -697,7 +697,7 @@ const onInput = (e) => {
textHeightRef.value.style.width = inputRef.value.clientWidth + 'px'; // textarea textHeightRef.value.style.width = inputRef.value.clientWidth + 'px'; // textarea
const lines = Math.floor(textHeightRef.value.clientHeight / lineHeight); const lines = Math.floor(textHeightRef.value.clientHeight / lineHeight);
inputRef.value.scrollTo(0, inputRef.value.scrollHeight) inputRef.value.scrollTo(0, inputRef.value.scrollHeight)
if (prompt.value.length === 0) { if (prompt.value.length < 10) {
row.value = 1 row.value = 1
} else if (row.value <= 7) { } else if (row.value <= 7) {
row.value = lines row.value = lines