fix(tree): Draggable tree title is not aligned when the text is wrapped (#41928)

This commit is contained in:
JiaQi 2023-04-23 09:06:07 +08:00 committed by GitHub
parent 88a9ba3893
commit 3fcf9de2b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,6 +170,8 @@ export const genBaseStyle = (prefixCls: string, token: TreeToken): CSSObject =>
'&-draggable': {
[`${treeCls}-draggable-icon`]: {
// https://github.com/ant-design/ant-design/issues/41915
flexShrink: 0,
width: treeTitleHeight,
lineHeight: `${treeTitleHeight}px`,
textAlign: 'center',