mirror of
				https://github.com/yangjian102621/geekai.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	micro fixs
This commit is contained in:
		@@ -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 {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user