1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix css of node help table of contents elements

This commit is contained in:
Nick O'Leary 2021-05-24 10:22:29 +01:00
parent 8a63390464
commit bc17ebd90e
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ RED.sidebar.help = (function() {
function getNodeLabel(n) {
var div = $('<div>',{class:"red-ui-node-list-item"});
RED.utils.createNodeIcon(n).appendTo(div);
var icon = RED.utils.createNodeIcon(n).appendTo(div);
var label = n.name;
if (!label && n._def.paletteLabel) {
try {
@ -240,7 +240,7 @@ RED.sidebar.help = (function() {
}
}
label = label || n.type;
$('<div>',{class:"red-ui-node-label"}).text(n.name||n.type).appendTo(div);
$('<div>',{class:"red-ui-node-label"}).text(n.name||n.type).appendTo(icon);
return div;
}

View File

@ -267,7 +267,7 @@
}
}
.red-ui-node-icon-container {
display: flex;
display: inline-flex;
align-items: center;
}
.red-ui-node-icon-container.red-ui-node-icon-small {