Skip to content

Commit

Permalink
fix(tree): fix tree not ellipsis (#1660)
Browse files Browse the repository at this point in the history
Co-authored-by: zhujiahong <zhujiahong@growingio.com>
  • Loading branch information
zhuzilv and zhujiahong committed Dec 10, 2021
1 parent 790ae49 commit 83fdc80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/demos/Tree.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const treeData = [
disabled: true,
children: [
{
title: '产品一组',
title: '产品一组产品一组产品一组产品一组产品一组产品一组产品一组产品一组产品一组',
key: '0-0-0-0',
icon: <CheckOutlined />,
disableCheckbox: true,
Expand Down
3 changes: 3 additions & 0 deletions src/tree/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@
// >>> Title
& &-node-content-wrapper {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
cursor: pointer;
.@{custom-tree-prefix-cls}-title {
overflow: hidden;
Expand Down

1 comment on commit 83fdc80

@vercel
Copy link

@vercel vercel bot commented on 83fdc80 Dec 10, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.