summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/config.ts4
-rw-r--r--pages/index.tsx3
2 files changed, 5 insertions, 2 deletions
diff --git a/components/config.ts b/components/config.ts
index 5c0a922..b5353aa 100644
--- a/components/config.ts
+++ b/components/config.ts
@@ -99,8 +99,8 @@ export const initialVisuals = {
linkHighlight: 'purple.500',
backgroundColor: 'white',
emacsNodeColor: '',
- labelTextColor: 'black',
- labelBackgroundColor: 'white',
+ labelTextColor: 'white',
+ labelBackgroundColor: 'black',
labelBackgroundOpacity: 0.7,
}
diff --git a/pages/index.tsx b/pages/index.tsx
index ae3c048..3ecda92 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -708,6 +708,9 @@ export const Graph = forwardRef(function (props: GraphProps, graphRef: any) {
if (!physics.labels) {
return
}
+ if (physics.labels === 2) {
+ return
+ }
if (physics.labels === 1 && !highlightedNodes[node.id!]) {
return
}