From bc17ebd90e3b0b953437c4f61be47ad6f2d2b3b5 Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 24 May 2021 10:22:29 +0100 Subject: [PATCH] Fix css of node help table of contents elements --- .../@node-red/editor-client/src/js/ui/tab-help.js | 4 ++-- .../@node-red/editor-client/src/sass/palette.scss | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js index 61ac462f5..6add6abe9 100644 --- a/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js +++ b/packages/node_modules/@node-red/editor-client/src/js/ui/tab-help.js @@ -231,7 +231,7 @@ RED.sidebar.help = (function() { function getNodeLabel(n) { var 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; - $('
',{class:"red-ui-node-label"}).text(n.name||n.type).appendTo(div); + $('
',{class:"red-ui-node-label"}).text(n.name||n.type).appendTo(icon); return div; } diff --git a/packages/node_modules/@node-red/editor-client/src/sass/palette.scss b/packages/node_modules/@node-red/editor-client/src/sass/palette.scss index 431e73ad4..5e5708839 100644 --- a/packages/node_modules/@node-red/editor-client/src/sass/palette.scss +++ b/packages/node_modules/@node-red/editor-client/src/sass/palette.scss @@ -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 {