diff --git a/src/lib/components/chat/Overview/Flow.svelte b/src/lib/components/chat/Overview/Flow.svelte index b704775c2..93de776f0 100644 --- a/src/lib/components/chat/Overview/Flow.svelte +++ b/src/lib/components/chat/Overview/Flow.svelte @@ -13,7 +13,14 @@ {edges} fitView minZoom={0.001} - colorMode={$theme.includes('dark') ? 'dark' : 'light'} + colorMode={$theme.includes('dark') + ? 'dark' + : $theme === 'system' + ? window.matchMedia('(prefers-color-scheme: dark)').matches + ? 'dark' + : 'light' + : 'light'} + nodesConnectable={false} nodesDraggable={false} on:nodeclick={(event) => console.log('on node click', event.detail.node)} oninit={() => {