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

Remove filtering of duplicate fa icons

This commit is contained in:
Nick O'Leary 2020-07-22 14:51:07 +01:00
parent 82677c304e
commit 442b9d23f1
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 2 additions and 11 deletions

View File

@ -808,17 +808,7 @@ RED.nodes.fontAwesome = (function() {
"fa-youtube": "\uf167", "fa-youtube": "\uf167",
}; };
var iconList = []; var iconList = Object.keys(iconMap);
var isUsed = {};
Object.keys(iconMap).forEach(function(icon) {
var unicode = iconMap[icon];
// skip icons with a same unicode
if (isUsed[unicode] !== true) {
iconList.push(icon);
isUsed[unicode] = true;
}
});
isUsed = undefined;
return { return {
getIconUnicode: function(name) { getIconUnicode: function(name) {

View File

@ -597,6 +597,7 @@ div.red-ui-button-small.red-ui-color-picker-opacity-slider-handle {
padding: 4px; padding: 4px;
color: $secondary-text-color; color: $secondary-text-color;
font-size: 0.9em; font-size: 0.9em;
line-height: 24px;
} }
button { button {
float: right; float: right;