fix(Tree): align switcher icon of tree component. (#51181)

This commit is contained in:
Meowu 2024-10-12 11:35:37 +08:00 committed by GitHub
parent d74500b34c
commit b8478e7e82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -245,6 +245,10 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
cursor: 'pointer',
userSelect: 'none',
transition: `all ${token.motionDurationSlow}`,
marginInlineEnd: token
.calc(token.calc(titleHeight).sub(token.controlInteractiveSize))
.div(2)
.equal(),
'&-noop': {
cursor: 'unset',