Browse Source

fix: styling

Timothy J. Baek 10 months ago
parent
commit
2018a6c000
1 changed files with 8 additions and 1 deletions
  1. 8 1
      src/lib/components/chat/Overview/Flow.svelte

+ 8 - 1
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={() => {