Skip to content

Commit

Permalink
better align fa-icons and better match theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Conway-Jones committed Jun 26, 2020
1 parent 2de566b commit 24a4b89
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion node-red-node-ui-list/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-node-ui-list",
"version": "0.3.0",
"version": "0.3.1",
"description": "Node-RED Dashboard UI widget node for simple list",
"author": "Hiroyasu Nishiyama",
"contributors": [
Expand Down
3 changes: 2 additions & 1 deletion node-red-node-ui-list/ui_list.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ module.exports = function(RED) {
var desc = (allowHTML ? String.raw`<span ng-bind-html="item.description"></span>` : String.raw`{{item.description}}`);
var icon = String.raw`
<img src="{{item.icon}}" class="md-avatar" ng-if="(item.icon !== undefined) && (item.icon !== null)">
<md-icon aria-label="{{item.desc}}" style="height:unset" ng-if="(item.icon === undefined) && (item.icon_name !== undefined)"><ui-icon icon="{{item.icon_name}}"></ui-icon></md-icon>
<md-icon aria-label="{{item.desc}}" style="height:unset; margin-top:0px; margin-bottom:0px; color:`+config.tcol+String.raw`" ng-if="(item.icon === undefined) && (item.icon_name !== undefined)"><ui-icon icon="{{item.icon_name}}"></ui-icon></md-icon>
<span class="md-avatar" style="font-size:x-large; height:unset;" ng-if="(item.icon === undefined) && (item.icon_unicode !== undefined)"><h1>{{item.icon_unicode}}</h1></span>
<md-icon class="md-avatar-icon" aria-label="{{item.desc}}" ng-if="(item.icon === null) && (item.icon_name === undefined) && (item.icon_unicode === undefined)"></md-icon>
`;
Expand Down Expand Up @@ -126,6 +126,7 @@ ${(allowMenu ? md_menu : "")}
// node-red-dashboard module.
ui = RED.require("node-red-dashboard")(RED);
}
config.tcol = ui.getTheme()["group-textColor"].value;
// Initialize node
RED.nodes.createNode(this, config);
var done = null;
Expand Down

0 comments on commit 24a4b89

Please sign in to comment.