Skip to content

Commit

Permalink
fix: make the animation of Menu smoother while expanding the Sider wh…
Browse files Browse the repository at this point in the history
…ich embedded with a Menu (#48121) (#48127)

Co-authored-by: afc163 <afc163@gmail.com>
  • Loading branch information
metouch and afc163 committed Apr 16, 2024
1 parent 0a7e225 commit 2562852
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/menu/style/vertical.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ const getVerticalStyle: GenerateStyle<MenuToken> = (token) => {
`border-color ${motionDurationSlow}`,
`background ${motionDurationSlow}`,
`padding ${motionDurationMid} ${motionEaseOut}`,
`padding-inline calc(50% - ${unit(token.calc(fontSizeLG).div(2).equal())} - ${unit(itemMarginInline)})`,
].join(','),

[`> ${componentCls}-title-content`]: {
Expand Down

0 comments on commit 2562852

Please sign in to comment.