Fix: Fixed the issue where the upload DSL dialog box was too narrow. #10427 (#12384)

### 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:
balibabu
2026-01-04 09:40:59 +08:00
committed by GitHub
parent 1f4a17863f
commit 42da080d89
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ export function UploadAgentDialog({
return (
<Dialog open onOpenChange={hideModal}>
<DialogContent className="sm:max-w-[425px]">
<DialogContent>
<DialogHeader>
<DialogTitle>{t('fileManager.uploadFile')}</DialogTitle>
</DialogHeader>

View File

@ -41,7 +41,7 @@ export function UploadAgentForm({ hideModal, onOk }: IModalProps<any>) {
<Form {...form}>
<form
onSubmit={form.handleSubmit(onSubmit)}
className="space-y-6 w-full text-ellipsis overflow-hidden"
className="space-y-6"
id={TagRenameId}
>
<NameFormField></NameFormField>
@ -53,7 +53,7 @@ export function UploadAgentForm({ hideModal, onOk }: IModalProps<any>) {
<FormLabel required>DSL</FormLabel>
<FormControl>
<FileUploader
className="w-[calc(100%-40px)] text-ellipsis overflow-hidden"
className="text-ellipsis overflow-hidden"
value={field.value}
onValueChange={field.onChange}
maxFileCount={1}