mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 21:30:53 +08:00
fix(notemap): invisible hover color on light theme
This commit is contained in:
parent
0770f97010
commit
d2dda95654
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
// set link width to immitate a highlight effect. Checking the condition if any links are saved in the previous defined set highlightlinks
|
||||||
graph
|
graph
|
||||||
.linkWidth((link) => (highlightLinks.has(link) ? 3 : 0.4))
|
.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)
|
.linkDirectionalArrowLength(4)
|
||||||
.linkDirectionalArrowRelPos(0.95)
|
.linkDirectionalArrowRelPos(0.95)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,6 @@ export default function NoteMapTab({ note }: TabContext) {
|
||||||
setHeight(SMALL_SIZE_HEIGHT);
|
setHeight(SMALL_SIZE_HEIGHT);
|
||||||
}
|
}
|
||||||
}, [ isExpanded, containerRef, windowHeight, containerSize?.top ]);
|
}, [ isExpanded, containerRef, windowHeight, containerSize?.top ]);
|
||||||
// useEffect(() => noteMapWidget.setDimensions(), [ containerSize?.width, height ]);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="note-map-ribbon-widget" style={{ height }} ref={containerRef}>
|
<div className="note-map-ribbon-widget" style={{ height }} ref={containerRef}>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue