From 84a7c71b9ca0bfb2d2f1d60dafbdc00ce7f72324 Mon Sep 17 00:00:00 2001 From: Matthias Konitzny <konitzny@ibr.cs.tu-bs.de> Date: Wed, 4 Aug 2021 16:09:37 +0200 Subject: [PATCH] Slight code improvements to style sheet changes. --- display/linkoverlay.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/display/linkoverlay.js b/display/linkoverlay.js index 0aa25f0..912089a 100644 --- a/display/linkoverlay.js +++ b/display/linkoverlay.js @@ -33,12 +33,8 @@ class LinkOverlay { const colorStrip = document.createElement("div"); colorStrip.className = "rel-container"; - colorStrip.style = - "background-color: " + - this.graph.edgeColors[link] + - "; width: " + - 10 * chars + - "px;"; + colorStrip.style.backgroundColor = this.graph.edgeColors[link]; + colorStrip.style.width = 10 * chars + "px"; relation.appendChild(colorStrip); } } -- GitLab