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
parent
commit
3fcf9de2b6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/tree/style/index.ts

2
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',

Loading…
Cancel
Save