fix: divider margin wrong (#34557)

* fix: margin wrong

* fix: wrong number

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
This commit is contained in:
Long Hao (龙濠) 2022-03-17 16:57:20 +08:00 committed by GitHub
parent 861b705ab4
commit 84b3febdb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,18 @@ const genSharedDividerStyle: GenerateStyle<DividerToken> = (token): CSSObject =>
},
},
'&-horizontal&-with-text-left': {
'&::before': {
top: '50%',
width: '5%',
},
'&::after': {
top: '50%',
width: '95%',
},
},
'&-horizontal&-with-text-right': {
'&::before': {
top: '50%',
@ -156,8 +168,8 @@ export default function useStyle(prefixCls: string): UseComponentStyleResult {
const dividerNotDefaultTextPadding = 0;
const dividerVerticalGutterMargin = token.marginXS;
const dividerHorizontalWithTextGutterMargin = token.marginLG;
const dividerHorizontalGutterMargin = token.margin;
const dividerHorizontalWithTextGutterMargin = token.margin;
const dividerHorizontalGutterMargin = token.marginLG;
const dividerToken: DividerToken = {
...token,