From 36a82cf215f4c31bbc9082dc26c4144f8cb2ab36 Mon Sep 17 00:00:00 2001
From: "Hartung, Michael" <michael.hartung@uni-hamburg.de>
Date: Tue, 1 Nov 2022 11:58:42 +0100
Subject: [PATCH] dont add legend background if legend is image by user

---
 .../network/network-legend/network-legend.component.html        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/components/network/network-legend/network-legend.component.html b/src/app/components/network/network-legend/network-legend.component.html
index b3878823..24dcbe8a 100644
--- a/src/app/components/network/network-legend/network-legend.component.html
+++ b/src/app/components/network/network-legend/network-legend.component.html
@@ -3,7 +3,7 @@
   [class.right]="config.legendPos === 'right'"
   [ngClass]="{ 'legend-small': drugstoneConfig.smallStyle }"
 >
-  <div class="legend-background"></div>
+  <div class="legend-background" *ngIf="!config.legendUrl.length"></div>
   <!-- default legend in html -->
   <table *ngIf="!config.legendUrl.length" class="legend-table">
     <ng-container *ngIf="config.showLegendNodes">
-- 
GitLab