diff --git a/frontend/src/lib/components/flows/FlowEditor.svelte b/frontend/src/lib/components/flows/FlowEditor.svelte index 3312acd5b0..bd68445c0e 100644 --- a/frontend/src/lib/components/flows/FlowEditor.svelte +++ b/frontend/src/lib/components/flows/FlowEditor.svelte @@ -4,6 +4,7 @@ import FlowModuleSchemaMap from './map/FlowModuleSchemaMap.svelte' import WindmillIcon from '../icons/WindmillIcon.svelte' import { Skeleton } from '../common' + import { PanelRightClose, PanelRightOpen } from 'lucide-svelte' import { getContext, onDestroy, onMount, setContext } from 'svelte' import type { FlowEditorContext } from './types' @@ -98,6 +99,10 @@ let flowModuleSchemaMap: FlowModuleSchemaMap | undefined = $state() + // The right-side settings/inspector panel can be collapsed to give the flow + // graph the full width. Collapsed by default — the panel is opt-in. + let panelCollapsed = $state(true) + export function isNodeVisible(nodeId: string): boolean { return flowModuleSchemaMap?.isNodeVisible(nodeId) ?? false } @@ -143,8 +148,21 @@ }} > - +
+ {#if loading}
{#each new Array(6) as _} @@ -190,34 +208,36 @@ {/if}
- - {#if loading} -
-
- + {#if !panelCollapsed} + + {#if loading} +
+
+ +
-
- {:else} - - {/if} - + {:else} + + {/if} + + {/if} {#if !disableAi} {/if} diff --git a/frontend/src/lib/components/graph/FlowGraphV2.svelte b/frontend/src/lib/components/graph/FlowGraphV2.svelte index 3c7b0dd771..1d8ca50796 100644 --- a/frontend/src/lib/components/graph/FlowGraphV2.svelte +++ b/frontend/src/lib/components/graph/FlowGraphV2.svelte @@ -1180,7 +1180,7 @@
{:else} n.type !== 'note') }}