diff --git a/lib/infobox/node.js b/lib/infobox/node.js index ab7c7c6..a090dfd 100644 --- a/lib/infobox/node.js +++ b/lib/infobox/node.js @@ -187,7 +187,6 @@ define(['sorttable', 'snabbdom', 'd3-interpolate', 'moment', 'helper'], return function (config, el, router, d, linkScale, gateways) { function renderNeighbourRow(n) { var icons = []; - icons.push(V.h('span', { props: { className: n.incoming ? 'ion-arrow-left-c' : 'ion-arrow-right-c' } })); if (helper.hasLocation(n.node)) { icons.push(V.h('span', { props: { className: 'ion-location' } })); } diff --git a/lib/main.js b/lib/main.js index 89322af..789ce60 100644 --- a/lib/main.js +++ b/lib/main.js @@ -37,8 +37,6 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'], }); links.forEach(function (d) { - var ids; - d.source = nodes.find(function (a) { return a.node_id === d.source; }); @@ -47,11 +45,9 @@ define(['moment', 'utils/router', 'leaflet', 'gui', 'helper', 'utils/language'], return a.node_id === d.target; }); - ids = [d.source.node_id, d.target.node_id]; - d.source.neighbours.push({ node: d.target, link: d, incoming: false }); - d.target.neighbours.push({ node: d.source, link: d, incoming: true }); - - d.id = ids.join('-'); + d.id = [d.source.node_id, d.target.node_id].join('-'); + d.source.neighbours.push({ node: d.target, link: d }); + d.target.neighbours.push({ node: d.source, link: d }); try { d.latlngs = []; diff --git a/scss/modules/_sidebar.scss b/scss/modules/_sidebar.scss index 58cf3ca..8d7971a 100644 --- a/scss/modules/_sidebar.scss +++ b/scss/modules/_sidebar.scss @@ -53,7 +53,7 @@ th, td { &:first-child { - width: 50px; + width: 25px; } } }