From 08f82632c86bdfafe07c1b4f68f535013814e0fd Mon Sep 17 00:00:00 2001 From: Guilhem Date: Tue, 5 Nov 2024 08:30:54 +0100 Subject: [PATCH] Move node prop picker --- .../src/lib/components/common/button/AnimatedButton.svelte | 4 +++- .../lib/components/flows/map/FlowModuleSchemaItem.svelte | 2 +- frontend/src/lib/components/flows/map/VirtualItem.svelte | 2 +- .../lib/components/flows/propPicker/FlowPropPicker.svelte | 7 ++++--- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/frontend/src/lib/components/common/button/AnimatedButton.svelte b/frontend/src/lib/components/common/button/AnimatedButton.svelte index ed7fa30a4b..d05f668b82 100644 --- a/frontend/src/lib/components/common/button/AnimatedButton.svelte +++ b/frontend/src/lib/components/common/button/AnimatedButton.svelte @@ -11,7 +11,9 @@ let clientWidth = 0 let clientHeight = 0 - $: circleRadius = Math.sqrt(clientWidth * clientWidth + clientHeight * clientHeight) / 2 + $: circleRadius = Math.ceil( + Math.sqrt(clientWidth * clientWidth + clientHeight * clientHeight) / 2 + )
{#if id && $propPickerConfig && pickableIds && Object.keys(pickableIds).includes(id)} -
+
{#if propPickerConfig && Object.keys(inputJson).length > 0} -
+
{/if} diff --git a/frontend/src/lib/components/flows/propPicker/FlowPropPicker.svelte b/frontend/src/lib/components/flows/propPicker/FlowPropPicker.svelte index f2dfc5dbdf..435896e9f9 100644 --- a/frontend/src/lib/components/flows/propPicker/FlowPropPicker.svelte +++ b/frontend/src/lib/components/flows/propPicker/FlowPropPicker.svelte @@ -25,8 +25,9 @@ > @@ -34,7 +35,7 @@ node outputs