Fix for left positioning of the KeyValueBuilder drawers

This commit is contained in:
Dean 2022-07-20 16:38:42 +01:00
parent 8bd81367f5
commit bdc8d1e675
4 changed files with 9 additions and 1 deletions

View File

@ -246,6 +246,7 @@
{bindings} {bindings}
allowJS={false} allowJS={false}
updateOnChange={false} updateOnChange={false}
drawerLeft="260px"
/> />
{/if} {/if}
{:else if value.customType === "query"} {:else if value.customType === "query"}
@ -335,6 +336,7 @@
{bindings} {bindings}
updateOnChange={false} updateOnChange={false}
placeholder={value.customType === "queryLimit" ? queryLimit : ""} placeholder={value.customType === "queryLimit" ? queryLimit : ""}
drawerLeft="260px"
/> />
</div> </div>
{/if} {/if}

View File

@ -18,6 +18,7 @@
export let fillWidth export let fillWidth
export let allowJS = true export let allowJS = true
export let updateOnChange = true export let updateOnChange = true
export let drawerLeft
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
let bindingDrawer let bindingDrawer
@ -53,7 +54,7 @@
</div> </div>
{/if} {/if}
</div> </div>
<Drawer {fillWidth} bind:this={bindingDrawer} {title}> <Drawer {fillWidth} bind:this={bindingDrawer} {title} left={drawerLeft}>
<svelte:fragment slot="description"> <svelte:fragment slot="description">
Add the objects on the left to enrich your text. Add the objects on the left to enrich your text.
</svelte:fragment> </svelte:fragment>

View File

@ -32,6 +32,7 @@
export let menuItems export let menuItems
export let showMenu = false export let showMenu = false
export let bindings = [] export let bindings = []
export let bindingDrawerLeft
let fields = Object.entries(object || {}).map(([name, value]) => ({ let fields = Object.entries(object || {}).map(([name, value]) => ({
name, name,
@ -119,6 +120,7 @@
value={field.value} value={field.value}
allowJS={false} allowJS={false}
fillWidth={true} fillWidth={true}
drawerLeft={bindingDrawerLeft}
/> />
{:else} {:else}
<Input <Input

View File

@ -440,6 +440,7 @@
...dynamicRequestBindings, ...dynamicRequestBindings,
...dataSourceStaticBindings, ...dataSourceStaticBindings,
]} ]}
bindingDrawerLeft="260px"
/> />
</Tab> </Tab>
<Tab title="Params"> <Tab title="Params">
@ -448,6 +449,7 @@
name="param" name="param"
headings headings
bindings={mergedBindings} bindings={mergedBindings}
bindingDrawerLeft="260px"
/> />
</Tab> </Tab>
<Tab title="Headers"> <Tab title="Headers">
@ -458,6 +460,7 @@
name="header" name="header"
headings headings
bindings={mergedBindings} bindings={mergedBindings}
bindingDrawerLeft="260px"
/> />
</Tab> </Tab>
<Tab title="Body"> <Tab title="Body">