mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Merge pull request #3176 from node-red/long-module-names
Improve handling of long labels in TreeList
This commit is contained in:
commit
764fc8477d
@ -537,6 +537,7 @@
|
||||
var labelPaddingWidth = (item.gutter ? item.gutter[0].offsetWidth + 2 : 0) + (depth * 20)
|
||||
item.treeList.labelPadding = $('<span>').css({
|
||||
display: "inline-block",
|
||||
"flex-shrink": 0,
|
||||
width: labelPaddingWidth+'px'
|
||||
}).appendTo(label);
|
||||
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
.red-ui-sidebar-info {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
.red-ui-sidebar-info hr {
|
||||
margin: 10px 0;
|
||||
|
@ -102,6 +102,8 @@
|
||||
}
|
||||
.red-ui-treeList-label-text {
|
||||
margin-left: 4px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
&:empty {
|
||||
min-height: 20px;
|
||||
}
|
||||
@ -121,6 +123,7 @@
|
||||
|
||||
.red-ui-treeList-icon {
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
width: 20px;
|
||||
text-align: center;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user