vben
authored
|
1
2
3
4
5
6
7
8
9
10
11
12
|
@tree-prefix-cls: ~'@{namespace}-tree';
.@{tree-prefix-cls} {
background-color: @component-background;
.ant-tree-node-content-wrapper {
position: relative;
.ant-tree-title {
position: absolute;
left: 0;
width: 100%;
|
vben
authored
|
13
14
15
|
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
|
vben
authored
|
16
17
18
19
20
|
}
}
&__title {
display: flex;
|
|
21
|
position: relative;
|
vben
authored
|
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
align-items: center;
width: 100%;
padding-right: 10px;
&:hover {
.@{tree-prefix-cls}__action {
visibility: visible;
}
}
}
&__content {
overflow: hidden;
}
&__actions {
|
|
38
|
display: flex;
|
vben
authored
|
39
|
position: absolute;
|
|
40
|
//top: 2px;
|
vben
authored
|
41
42
43
44
45
|
right: 3px;
}
&__action {
visibility: hidden;
|
|
46
|
margin-left: 4px;
|
vben
authored
|
47
48
49
50
51
52
|
}
&-header {
border-bottom: 1px solid @border-color-base;
}
}
|