mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 11:10:01 +08:00
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:
parent
861b705ab4
commit
84b3febdb6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user