mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	update: resizeTextarea
This commit is contained in:
		@@ -392,9 +392,7 @@ export function Chat(props: {
 | 
			
		||||
    const dom = inputRef.current;
 | 
			
		||||
    if (!dom) return;
 | 
			
		||||
    const { minRows, maxRows } = props.autoSize;
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
      setTextareaStyle(calcTextareaHeight(dom, minRows, maxRows));
 | 
			
		||||
    }, 50);
 | 
			
		||||
    setTextareaStyle(calcTextareaHeight(dom, minRows, maxRows));
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  // only search prompts when user input is short
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user