From 3fcf9de2b6201127025272b225f815ac8382718f Mon Sep 17 00:00:00 2001 From: JiaQi <112228030+Yuiai01@users.noreply.github.com> Date: Sun, 23 Apr 2023 09:06:07 +0800 Subject: [PATCH] fix(tree): Draggable tree title is not aligned when the text is wrapped (#41928) --- components/tree/style/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/tree/style/index.ts b/components/tree/style/index.ts index d75a38cad4..f97bb3e350 100644 --- a/components/tree/style/index.ts +++ b/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',