From c3e465601eea54e468b8649bb285c58d929d16af Mon Sep 17 00:00:00 2001 From: Manfred Steyer Date: Fri, 27 Sep 2024 14:28:59 +0200 Subject: [PATCH] fix(frontend): only show one tip tool text at once --- .detective/config.json | 19 ++++++++++++++----- apps/frontend/src/app/ui/graph/graph.ts | 4 ++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/.detective/config.json b/.detective/config.json index 13576a0..dcae988 100644 --- a/.detective/config.json +++ b/.detective/config.json @@ -1,12 +1,21 @@ { "scopes": [ - "apps/backend/src/services", - "apps/backend/src/utils", - "apps/backend/src/options", "apps/backend/src/model", - "apps/backend/src/infrastructure" + "apps/frontend/src/app/data", + "apps/frontend/src/app/features", + "apps/frontend/src/app/model", + "apps/frontend/src/app/shell", + "apps/frontend/src/app/ui", + "apps/frontend/src/app/utils" + ], + "groups": [ + "apps/backend/src", + "apps/backend", + "apps/frontend/src/app", + "apps/frontend/src", + "apps/frontend", + "apps" ], - "groups": ["apps/backend/src", "apps/backend", "apps"], "entries": [], "filter": { "files": [], diff --git a/apps/frontend/src/app/ui/graph/graph.ts b/apps/frontend/src/app/ui/graph/graph.ts index 5343ebe..fd49931 100644 --- a/apps/frontend/src/app/ui/graph/graph.ts +++ b/apps/frontend/src/app/ui/graph/graph.ts @@ -168,6 +168,10 @@ function defineToolTipsForNodes(cy: cytoscape.Core) { return; } + node.on('tap', (event) => { + event.stopPropagation(); // Verhindert das Bubbling des Events + }); + const nodeWithQtip = node as NodeWithQtip; nodeWithQtip.qtip({ content: tooltip,