style: update form description style

This commit is contained in:
chenos 2021-01-26 22:14:48 +08:00
parent 11f5050fd5
commit 613c4a14ad

View File

@ -11,7 +11,7 @@ export const FormDescription = createVirtualBox(
<Card size={'small'} headStyle={{padding: 0}} bodyStyle={{
padding: 0,
}} className={className} {...props}>
<div dangerouslySetInnerHTML={{__html: children && markdown(children)}}></div>
{typeof children === 'string' && children && <div dangerouslySetInnerHTML={{__html: markdown(children)}}></div>}
</Card>
)
})`
@ -19,6 +19,13 @@ export const FormDescription = createVirtualBox(
&.ant-card {
border: none;
box-shadow: none;
.ant-card-head {
font-size: 16px;
background: #fafafa;
margin: 0 -24px;
padding: 4px 24px !important;
border-top: 1px solid #f0f0f0;
}
p:first-child {
margin-top: 14px;
}