Fix custom options drawer layout

This commit is contained in:
Andrew Kingston 2022-06-08 12:50:04 +01:00
parent c873b42242
commit dd6f35e816
1 changed files with 6 additions and 12 deletions

View File

@ -6,6 +6,7 @@
DrawerContent, DrawerContent,
Layout, Layout,
Body, Body,
Label,
} from "@budibase/bbui" } from "@budibase/bbui"
import { generate } from "shortid" import { generate } from "shortid"
@ -35,19 +36,12 @@
{/if} {/if}
{#if options?.length} {#if options?.length}
<div class="options"> <div class="options">
<Label>Label</Label>
<Label>Value</Label>
<div />
{#each options as option (option.id)} {#each options as option (option.id)}
<Input <Input placeholder="Label" bind:value={option.label} />
placeholder="Label" <Input placeholder="Value" bind:value={option.value} />
bind:value={option.label}
label="Label"
labelPosition="left"
/>
<Input
placeholder="Value"
bind:value={option.value}
label="Value"
labelPosition="left"
/>
<Icon <Icon
name="Close" name="Close"
hoverable hoverable