mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
fix: menu paddingTop centered with icon (#38626)
This commit is contained in:
parent
1cdb4503a2
commit
c6c35cc0ad
@ -98,8 +98,6 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
|
||||
{
|
||||
'': {
|
||||
[`${componentCls}`]: {
|
||||
...clearFix(),
|
||||
|
||||
// Hidden
|
||||
[`&-hidden`]: {
|
||||
display: 'none',
|
||||
@ -113,6 +111,7 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
|
||||
{
|
||||
[componentCls]: {
|
||||
...resetComponent(token),
|
||||
...clearFix(),
|
||||
|
||||
marginBottom: 0,
|
||||
paddingInlineStart: 0, // Override default ul/ol
|
||||
|
@ -62,6 +62,7 @@ const getVerticalStyle: GenerateStyle<MenuToken> = (token) => {
|
||||
motionDurationFast,
|
||||
motionEaseOut,
|
||||
paddingXL,
|
||||
fontSizeSM,
|
||||
fontSizeLG,
|
||||
motionDurationSlow,
|
||||
paddingXS,
|
||||
@ -180,7 +181,7 @@ const getVerticalStyle: GenerateStyle<MenuToken> = (token) => {
|
||||
> ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-submenu > ${componentCls}-submenu-title,
|
||||
> ${componentCls}-submenu > ${componentCls}-submenu-title`]: {
|
||||
insetInlineStart: 0,
|
||||
paddingInline: `calc(50% - ${fontSizeLG / 2}px)`,
|
||||
paddingInline: `calc(50% - ${fontSizeSM}px)`,
|
||||
textOverflow: 'clip',
|
||||
|
||||
[`${componentCls}-submenu-arrow`]: {
|
||||
|
Loading…
Reference in New Issue
Block a user