diff --git a/apps/client/src/widgets/note_map/rendering.ts b/apps/client/src/widgets/note_map/rendering.ts index 74c883a43..688538658 100644 --- a/apps/client/src/widgets/note_map/rendering.ts +++ b/apps/client/src/widgets/note_map/rendering.ts @@ -164,7 +164,7 @@ export function setupRendering(graph: ForceGraph, { note, noteId, themeStyle, wi // set link width to immitate a highlight effect. Checking the condition if any links are saved in the previous defined set highlightlinks graph .linkWidth((link) => (highlightLinks.has(link) ? 3 : 0.4)) - .linkColor((link) => (highlightLinks.has(link) ? "white" : cssData.mutedTextColor)) + .linkColor((link) => (highlightLinks.has(link) ? cssData.textColor : cssData.mutedTextColor)) .linkDirectionalArrowLength(4) .linkDirectionalArrowRelPos(0.95) diff --git a/apps/client/src/widgets/ribbon/NoteMapTab.tsx b/apps/client/src/widgets/ribbon/NoteMapTab.tsx index 80a27c336..ec7f4a749 100644 --- a/apps/client/src/widgets/ribbon/NoteMapTab.tsx +++ b/apps/client/src/widgets/ribbon/NoteMapTab.tsx @@ -22,7 +22,6 @@ export default function NoteMapTab({ note }: TabContext) { setHeight(SMALL_SIZE_HEIGHT); } }, [ isExpanded, containerRef, windowHeight, containerSize?.top ]); - // useEffect(() => noteMapWidget.setDimensions(), [ containerSize?.width, height ]); return (