mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-02 00:25:06 +08:00
### What problem does this PR solve? Fix: Fixed the issue where the upload DSL dialog box was too narrow. #10427 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) Co-authored-by: Kevin Hu <kevinhu.sh@gmail.com>
This commit is contained in:
@ -20,7 +20,7 @@ export function UploadAgentDialog({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog open onOpenChange={hideModal}>
|
<Dialog open onOpenChange={hideModal}>
|
||||||
<DialogContent className="sm:max-w-[425px]">
|
<DialogContent>
|
||||||
<DialogHeader>
|
<DialogHeader>
|
||||||
<DialogTitle>{t('fileManager.uploadFile')}</DialogTitle>
|
<DialogTitle>{t('fileManager.uploadFile')}</DialogTitle>
|
||||||
</DialogHeader>
|
</DialogHeader>
|
||||||
|
|||||||
@ -41,7 +41,7 @@ export function UploadAgentForm({ hideModal, onOk }: IModalProps<any>) {
|
|||||||
<Form {...form}>
|
<Form {...form}>
|
||||||
<form
|
<form
|
||||||
onSubmit={form.handleSubmit(onSubmit)}
|
onSubmit={form.handleSubmit(onSubmit)}
|
||||||
className="space-y-6 w-full text-ellipsis overflow-hidden"
|
className="space-y-6"
|
||||||
id={TagRenameId}
|
id={TagRenameId}
|
||||||
>
|
>
|
||||||
<NameFormField></NameFormField>
|
<NameFormField></NameFormField>
|
||||||
@ -53,7 +53,7 @@ export function UploadAgentForm({ hideModal, onOk }: IModalProps<any>) {
|
|||||||
<FormLabel required>DSL</FormLabel>
|
<FormLabel required>DSL</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<FileUploader
|
<FileUploader
|
||||||
className="w-[calc(100%-40px)] text-ellipsis overflow-hidden"
|
className="text-ellipsis overflow-hidden"
|
||||||
value={field.value}
|
value={field.value}
|
||||||
onValueChange={field.onChange}
|
onValueChange={field.onChange}
|
||||||
maxFileCount={1}
|
maxFileCount={1}
|
||||||
|
|||||||
Reference in New Issue
Block a user