mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
chore: adjust label style
This commit is contained in:
parent
88050fe917
commit
08ae75be8c
@ -96,9 +96,8 @@ const genLabelPlacementStyle: GenerateStyle<StepsToken, CSSObject> = (token) =>
|
||||
'--steps-title-horizontal-rail-gap': token.marginXXS,
|
||||
'--steps-heading-height': 'var(--steps-icon-size-max)',
|
||||
|
||||
[itemCls]: {
|
||||
[`> ${itemCls}`]: {
|
||||
flex: 1,
|
||||
},
|
||||
|
||||
[`${itemCls}-wrapper`]: {
|
||||
flexDirection: 'column',
|
||||
@ -134,6 +133,7 @@ const genLabelPlacementStyle: GenerateStyle<StepsToken, CSSObject> = (token) =>
|
||||
width: `calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)`,
|
||||
insetInlineStart: `calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))`,
|
||||
},
|
||||
},
|
||||
|
||||
// With descriptionMaxWidth
|
||||
...getItemWithWidthStyle(token, marginXS, {
|
||||
|
Loading…
Reference in New Issue
Block a user