refactor: replace SectionCard with div for layout simplification in EditDialogBody
This commit is contained in:
@@ -694,9 +694,7 @@ function EditDialogBody({
|
|||||||
onSubmit={handleSubmit(onFormSubmit)}
|
onSubmit={handleSubmit(onFormSubmit)}
|
||||||
className="space-y-6"
|
className="space-y-6"
|
||||||
>
|
>
|
||||||
<SectionCard
|
<div className="space-y-4">
|
||||||
title={t("aiAgent.sectionBasic")}
|
|
||||||
>
|
|
||||||
<div className="grid grid-cols-1 gap-4 xl:grid-cols-3">
|
<div className="grid grid-cols-1 gap-4 xl:grid-cols-3">
|
||||||
<Field data-invalid={!!errors.name}>
|
<Field data-invalid={!!errors.name}>
|
||||||
<FieldLabel htmlFor="ai-agent-name">{t("aiAgent.name")}</FieldLabel>
|
<FieldLabel htmlFor="ai-agent-name">{t("aiAgent.name")}</FieldLabel>
|
||||||
@@ -781,7 +779,7 @@ function EditDialogBody({
|
|||||||
<FieldError errors={[errors.systemPrompt]} />
|
<FieldError errors={[errors.systemPrompt]} />
|
||||||
</FieldContent>
|
</FieldContent>
|
||||||
</Field>
|
</Field>
|
||||||
</SectionCard>
|
</div>
|
||||||
|
|
||||||
<SectionCard
|
<SectionCard
|
||||||
title={t("aiAgent.sectionStrategy")}
|
title={t("aiAgent.sectionStrategy")}
|
||||||
|
|||||||
Reference in New Issue
Block a user