diff --git a/src/main/resources/js/segrada.js b/src/main/resources/js/segrada.js index 05dd7270..d5bd75d5 100644 --- a/src/main/resources/js/segrada.js +++ b/src/main/resources/js/segrada.js @@ -1257,7 +1257,7 @@ function escapeHTML(myString) { else graphShow(); e.preventDefault(); }); - $('#sg-graph-action-remove').click(function(e) { + $('.sg-graph-action-remove').click(function(e) { const selection = graphNetwork.getSelection(); if (selection.edges.length > 0) graphEdges.remove(selection.edges); if (selection.nodes.length > 0) graphNodes.remove(selection.nodes); diff --git a/src/main/resources/less/single/segrada.less b/src/main/resources/less/single/segrada.less index a8f3c55d..627e6c04 100644 --- a/src/main/resources/less/single/segrada.less +++ b/src/main/resources/less/single/segrada.less @@ -227,11 +227,17 @@ span.sg-color-icon { z-index: 101; border: 1px solid #666; - padding: 0.5em; background-color: #fff; a { + padding: 0.25em 0.5em; display: block; + color: #666; + } + a:hover { + color: #fff; + background-color: #666; + text-decoration: none; } } diff --git a/src/main/webapp/WEB-INF/templates/partials/graph.html b/src/main/webapp/WEB-INF/templates/partials/graph.html index 0d9a742c..bbda26a4 100644 --- a/src/main/webapp/WEB-INF/templates/partials/graph.html +++ b/src/main/webapp/WEB-INF/templates/partials/graph.html @@ -18,7 +18,7 @@ - + @@ -33,6 +33,7 @@ Add all Fix Unfix + Delete