Skip to content

Commit

Permalink
fix: menu expansion submenu jitter (#38748)
Browse files Browse the repository at this point in the history
  • Loading branch information
JarvisArt committed Nov 19, 2022
1 parent 7728eec commit c51bba2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/menu/style/index.tsx
Expand Up @@ -98,6 +98,8 @@ const getBaseStyle: GenerateStyle<MenuToken> = (token) => {
{
'': {
[`${componentCls}`]: {
...clearFix(),

// Hidden
[`&-hidden`]: {
display: 'none',
Expand Down
5 changes: 5 additions & 0 deletions components/menu/style/vertical.tsx
Expand Up @@ -33,6 +33,11 @@ const getVerticalInlineStyle: GenerateStyle<MenuToken, CSSObject> = (token) => {
width: `calc(100% - ${itemMarginInline * 2}px)`,
},

// disable margin collapsed
[`${componentCls}-submenu`]: {
paddingBottom: 0.02,
},

[`> ${componentCls}-item,
> ${componentCls}-submenu > ${componentCls}-submenu-title`]: {
height: menuItemHeight,
Expand Down

0 comments on commit c51bba2

Please sign in to comment.