Skip to content

Commit

Permalink
💄 style: 优化展开节点的说明显示
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Mar 17, 2021
1 parent cfa3379 commit 54c5e8f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/mindflow/src/components/MindNode/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,27 @@

&-title {
margin-left: 4px;
overflow: hidden; //超出的隐藏
white-space: nowrap; //强制一行显示
text-overflow: ellipsis; //省略号
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
&-expand {
display: -webkit-box;
white-space: normal;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; // 以此类推,3行4行直接该数字就好啦
-webkit-line-clamp: 2;
}
}

&-desc {
display: -webkit-box;
margin-top: 4px;
margin-left: 4px;
overflow: hidden;
color: @text-color-secondary;
font-size: 12px;
white-space: normal;
-webkit-box-orient: vertical;
-webkit-line-clamp: 4;
}

&-collapse {
Expand All @@ -47,7 +52,6 @@
justify-content: center;
width: 20px;
height: 20px;
background: white;
border: 1px solid transparent;
border-radius: 20px;
transform: translateY(-50%);
Expand Down

1 comment on commit 54c5e8f

@vercel
Copy link

@vercel vercel bot commented on 54c5e8f Mar 17, 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.