mirror of
https://github.com/jackyzha0/quartz.git
synced 2026-03-24 15:05:42 -05:00
FIX: Reload graph after a theme change - comment updated
This commit is contained in:
parent
f4cbd1f703
commit
bd67a5841b
@ -183,7 +183,7 @@ async function renderGraph(container: string, fullSlug: FullSlug) {
|
|||||||
"--bodyFont",
|
"--bodyFont",
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
// Replace the color function with this
|
// Dynamic color function
|
||||||
const color = (d: NodeData) => {
|
const color = (d: NodeData) => {
|
||||||
const style = getComputedStyle(document.documentElement)
|
const style = getComputedStyle(document.documentElement)
|
||||||
const isCurrent = d.id === slug
|
const isCurrent = d.id === slug
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user