fix: menu paddingTop centered with icon (#38626)

This commit is contained in:
JarvisArt 2022-11-17 18:37:48 +08:00 committed by GitHub
parent 1cdb4503a2
commit c6c35cc0ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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`]: {