From 653b3abe91b19b5eb8abd0015a9b44aa1ab0852b Mon Sep 17 00:00:00 2001 From: marwin Date: Tue, 6 May 2025 22:50:04 +0100 Subject: [PATCH] ich geh schlafen --- static/js/update_mindmap.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/static/js/update_mindmap.js b/static/js/update_mindmap.js index b832a8a..5281e7b 100644 --- a/static/js/update_mindmap.js +++ b/static/js/update_mindmap.js @@ -58,7 +58,7 @@ document.addEventListener('DOMContentLoaded', function() { 'background-color': 'data(color)', 'label': 'data(label)', 'color': '#fff', - 'text-background-color': '#222a', + 'text-background-color': '#222222', 'text-background-opacity': 0.7, 'text-background-padding': '4px', 'text-valign': 'center', @@ -72,6 +72,12 @@ document.addEventListener('DOMContentLoaded', function() { 'z-index': 10 } }, + { + selector: 'node[!color]', + style: { + 'background-color': '#60a5fa' + } + }, { selector: 'node:selected', style: { @@ -90,7 +96,7 @@ document.addEventListener('DOMContentLoaded', function() { 'label': 'data(label)', 'font-size': 12, 'color': '#fff', - 'text-background-color': '#222a', + 'text-background-color': '#222222', 'text-background-opacity': 0.7, 'text-background-padding': '2px', 'opacity': 0.8, @@ -343,7 +349,7 @@ function updateMindmap() { 'label': 'data(label)', 'font-size': 12, 'color': '#fff', - 'text-background-color': '#222a', + 'text-background-color': '#222222', 'text-background-opacity': 0.7, 'text-background-padding': '2px' }