fix flow UX

This commit is contained in:
Ruben Fiszel
2022-11-24 01:52:07 +01:00
parent 6e98be606c
commit 5ccc85e60f
4 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -254,7 +254,7 @@
size="sm"
btnClasses="mt-1"
on:click={() => {
if (value == undefined) {
if (value == undefined || !Array.isArray(value)) {
value = []
}
value = value.concat('')
@@ -133,7 +133,7 @@
}}>Fill test args from payload</Button
>
</div>
<div class="grow pb-8 max-h-1/2 overflow-auto">
<div class="h-full grow pb-20 max-h-60 overflow-auto">
<SchemaForm
class="h-full pt-4"
schema={$flowStore.schema}
@@ -12,6 +12,12 @@
export let selected: any
const dispatch = createEventDispatcher()
$: setSelected(selected)
function setSelected(selected: any) {
selectedContent.set(selected)
}
const selectedContent = writable(selected)
$: $selectedContent && dispatch('selected', $selectedContent)
@@ -26,7 +26,7 @@
tabindex="-1"
>
<Icon data={faCode} scale={0.8} class="mr-1" />
Script
Script or Module
</button>
<button
class="w-full text-left p-2 hover:bg-gray-100"