mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Merge pull request #3176 from node-red/long-module-names
Improve handling of long labels in TreeList
This commit is contained in:
		| @@ -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; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user