mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
fix: fixed the non draggable element did not hide the draggable icon (#36511)
fix #33708
This commit is contained in:
parent
92c8bdc88f
commit
14c7c63bbf
@ -117,6 +117,21 @@
|
||||
color: @tree-node-hightlight-color;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
&-draggable {
|
||||
.@{custom-tree-prefix-cls}-draggable-icon {
|
||||
width: @tree-title-height;
|
||||
line-height: @tree-title-height;
|
||||
text-align: center;
|
||||
visibility: visible;
|
||||
opacity: 0.2;
|
||||
transition: opacity @animation-duration-slow;
|
||||
|
||||
.@{custom-tree-node-prefix-cls}:hover & {
|
||||
opacity: 0.45;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// >>> Indent
|
||||
@ -133,15 +148,7 @@
|
||||
|
||||
// >>> Drag Handler
|
||||
&-draggable-icon {
|
||||
width: @tree-title-height;
|
||||
line-height: @tree-title-height;
|
||||
text-align: center;
|
||||
opacity: 0.2;
|
||||
transition: opacity @animation-duration-slow;
|
||||
|
||||
.@{custom-tree-node-prefix-cls}:hover & {
|
||||
opacity: 0.45;
|
||||
}
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
// >>> Switcher
|
||||
|
Loading…
Reference in New Issue
Block a user