From 72aeba121cb694e8e96ad189b4acbfc2340bf520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81d=C3=A1m=20Kov=C3=A1cs?= <43071496+adam-kov@users.noreply.github.com> Date: Sat, 31 Dec 2022 13:37:23 +0100 Subject: [PATCH] fix(frontend): Static inputs overflow (#1057) * fix(frontend): Static inputs overflow * Update FlowConstantsItem.svelte Co-authored-by: Ruben Fiszel --- .../flows/content/FlowConstants.svelte | 17 +++++++++-------- .../flows/map/FlowConstantsItem.svelte | 12 +++++------- .../flows/map/FlowModuleSchemaMap.svelte | 6 +----- .../flows/map/FlowSettingsItem.svelte | 12 +++++------- 4 files changed, 20 insertions(+), 27 deletions(-) diff --git a/frontend/src/lib/components/flows/content/FlowConstants.svelte b/frontend/src/lib/components/flows/content/FlowConstants.svelte index 6494942105..83560198e7 100644 --- a/frontend/src/lib/components/flows/content/FlowConstants.svelte +++ b/frontend/src/lib/components/flows/content/FlowConstants.svelte @@ -38,10 +38,10 @@ }) -
+
-
- + This page centralizes the static inputs of every steps. It is akin to a file containing all constants. Modifying a value here modify it in the step input directly. It is especially useful when forking a flow to get an overview of all the variables to parametrize that are @@ -50,11 +50,11 @@ {#if steps.length == 0}
{#if $flowStore.value.modules.length == 0} - + This flow has no steps. Add a step to see its static inputs. {:else} - + This flow has no steps with static inputs. Add a step with static inputs to see them here. @@ -62,9 +62,9 @@ {/if} {#each steps as [args, filter, m] (m.id)} {#if filter.length > 0} -
-

{m.summary || m.value['path'] || 'Inline script'} +
+

+ {m.summary || m.value['path'] || 'Inline script'} {m.id}

@@ -72,6 +72,7 @@ noDynamicToggle inputTransform {filter} + class="mt-2" schema={$flowStateStore[m.id]?.schema ?? {}} bind:args /> diff --git a/frontend/src/lib/components/flows/map/FlowConstantsItem.svelte b/frontend/src/lib/components/flows/map/FlowConstantsItem.svelte index c7453e2ad5..b78f36f138 100644 --- a/frontend/src/lib/components/flows/map/FlowConstantsItem.svelte +++ b/frontend/src/lib/components/flows/map/FlowConstantsItem.svelte @@ -1,9 +1,8 @@ - -
select('constants')} class={settingsClass}> - - +
+ diff --git a/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte b/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte index a1bf0af859..5c719e2e9c 100644 --- a/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte +++ b/frontend/src/lib/components/flows/map/FlowModuleSchemaMap.svelte @@ -106,13 +106,9 @@
{#if root}
-
-
{/if} diff --git a/frontend/src/lib/components/flows/map/FlowSettingsItem.svelte b/frontend/src/lib/components/flows/map/FlowSettingsItem.svelte index bf34b88fd0..12c6e193a5 100644 --- a/frontend/src/lib/components/flows/map/FlowSettingsItem.svelte +++ b/frontend/src/lib/components/flows/map/FlowSettingsItem.svelte @@ -1,11 +1,10 @@ - -
select('settings-metadata')} class={settingsClass}> - - +
+