diff --git a/src/Form/components/FormTitle.tsx b/src/Form/components/FormTitle.tsx index dcfd0e69..9631c7ca 100644 --- a/src/Form/components/FormTitle.tsx +++ b/src/Form/components/FormTitle.tsx @@ -18,7 +18,7 @@ export const useStyles = createStyles(({ css, token, prefixCls }) => ({ > small { display: block; - line-height: 1.2; + line-height: 1.44; color: ${token.colorTextDescription}; word-wrap: break-word; white-space: pre-wrap; @@ -40,12 +40,21 @@ export interface FormTitleProps extends DivProps { const FormTitle = memo(({ className, tag, title, desc, avatar }) => { const { cx, styles } = useStyles(); const titleNode = ( - + {title} {tag && {tag}} - {desc && {desc}} + {desc && ( + + {desc} + + )} );