diff --git a/web/src/components/config-form/theme/templates/FieldTemplate.tsx b/web/src/components/config-form/theme/templates/FieldTemplate.tsx index 5b7f3cb27..fc77b4d97 100644 --- a/web/src/components/config-form/theme/templates/FieldTemplate.tsx +++ b/web/src/components/config-form/theme/templates/FieldTemplate.tsx @@ -400,12 +400,48 @@ export function FieldTemplate(props: FieldTemplateProps) { )} )} - {finalDescription && !isMultiSchemaWrapper && ( + {finalDescription && + !isMultiSchemaWrapper && + !isAdditionalProperty && ( +

+ {finalDescription} +

+ )} + {fieldDocsUrl && + !isMultiSchemaWrapper && + !isObjectField && + !isAdditionalProperty && ( +
+ + {t("readTheDocumentation", { ns: "common" })} + + +
+ )} + +
{children}
+ + ) : ( + <> + {children} + + {finalDescription && + !isMultiSchemaWrapper && + !isObjectField && + !isAdditionalProperty && (

{finalDescription}

)} - {fieldDocsUrl && !isMultiSchemaWrapper && !isObjectField && ( + {fieldDocsUrl && + !isMultiSchemaWrapper && + !isObjectField && + !isAdditionalProperty && (
)} - -
{children}
- - ) : ( - <> - {children} - - {finalDescription && !isMultiSchemaWrapper && !isObjectField && ( -

- {finalDescription} -

- )} - {fieldDocsUrl && !isMultiSchemaWrapper && !isObjectField && ( -
- - {t("readTheDocumentation", { ns: "common" })} - - -
- )} )}