Fix: The text field resizing function in the knowledge block creation… (#14212)

… modal

- Add vertical resizing functionality for the text field

### What problem does this PR solve?

_Fix the issue where the text content of the knowledge base editing
parsing block is too long to scroll._

<img width="701" height="775" alt="image"
src="https://github.com/user-attachments/assets/b258422e-fbc1-466d-abab-062e642c21d5"
/>

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Co-authored-by: chenyun <chenyun@chenyundemacbook-pro.local>
This commit is contained in:
Jackie
2026-05-13 13:57:05 +08:00
committed by GitHub
parent 45d676bc05
commit 71d327b11c

View File

@@ -132,7 +132,7 @@ const ChunkCreatingModal: React.FC<IModalProps<any> & kFProps> = ({
<FormItem>
<FormLabel>{t('chunk.chunk')}</FormLabel>
<FormControl>
<Textarea {...field} autoSize={{ minRows: 4, maxRows: 10 }} />
<Textarea {...field} autoSize={{ minRows: 4, maxRows: 10 }} resize="vertical" />
</FormControl>
<FormMessage />
</FormItem>