enh: scroll to message from overview
This commit is contained in:
1 parent
8d92093570
commit
67f704c98d
5 files changed
+38
-4
No files matched your search
@@ -1,7 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { getContext, createEventDispatcher } from 'svelte';
|
||||
import { useSvelteFlow, useNodesInitialized, useStore } from '@xyflow/svelte';
|
||||
import { SvelteFlow, Controls, Background, BackgroundVariant } from '@xyflow/svelte';
|
||||
|
||||
const dispatch = createEventDispatcher();
|
||||
const i18n = getContext('i18n');
|
||||
@@ -148,6 +147,6 @@
|
||||
</div>
|
||||
|
||||
{#if $nodes.length > 0}
|
||||
<Flow {nodes} {nodeTypes} {edges} />
|
||||
<Flow {nodes} {nodeTypes} {edges} on:nodeclick={(e) => dispatch('nodeclick', e.detail)} />
|
||||
{/if}
|
||||
</div>
|
||||
Reference in new issue
Block a user