fix: styling

This commit is contained in:
Timothy J. Baek 2024-09-18 01:53:08 +02:00
parent 56152230f8
commit 2018a6c000

View File

@ -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={() => {