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:
parent
82677c304e
commit
442b9d23f1
@ -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) {
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user