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

Info sidebar tweaks

This commit is contained in:
Nick O'Leary 2014-08-19 23:46:18 +01:00
parent 1e33843798
commit 44a51e849d
2 changed files with 6 additions and 2 deletions

View File

@ -43,9 +43,10 @@ RED.sidebar.info = (function() {
function refresh(node) { function refresh(node) {
var table = '<table class="node-info"><tbody>'; var table = '<table class="node-info"><tbody>';
table += '<tr class="blank"><td colspan="2">Node</td></tr>';
table += "<tr><td>Type</td><td>&nbsp;"+node.type+"</td></tr>"; table += "<tr><td>Type</td><td>&nbsp;"+node.type+"</td></tr>";
table += "<tr><td>ID</td><td>&nbsp;"+node.id+"</td></tr>"; table += "<tr><td>ID</td><td>&nbsp;"+node.id+"</td></tr>";
table += '<tr class="blank"><td colspan="2">&nbsp;Properties</td></tr>'; table += '<tr class="blank"><td colspan="2">Properties</td></tr>';
for (var n in node._def.defaults) { for (var n in node._def.defaults) {
if (node._def.defaults.hasOwnProperty(n)) { if (node._def.defaults.hasOwnProperty(n)) {
var val = node[n]||""; var val = node[n]||"";

View File

@ -588,12 +588,15 @@ table.node-info tr.blank {
} }
table.node-info tr.blank td { table.node-info tr.blank td {
padding-top: 8px; padding-top: 8px;
border: none;
font-weight: bold;
padding-left: 0px;
} }
table.node-info td:first-child{ table.node-info td:first-child{
color: #000; color: #000;
vertical-align: top; vertical-align: top;
width: 90px; width: 90px;
padding: 0 3px; padding: 3px;
border-right: 1px solid #ddd; border-right: 1px solid #ddd;
} }
table.node-info td:last-child{ table.node-info td:last-child{