Browse Source
fix(tree): Draggable tree title is not aligned when the text is wrapped (#41928)
pull/41946/head
JiaQi
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
components/tree/style/index.ts
|
|
@ -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', |
|
|
|