From 16061765ee7c3d643775d73d5f0d94d6d336ad84 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 28 Jun 2024 09:12:45 +0100 Subject: [PATCH] PR Feeback. Remove X icons in form. --- .../automation/SetupPanel/RowSelector.svelte | 83 ++++++++----------- 1 file changed, 33 insertions(+), 50 deletions(-) diff --git a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte index 38f455b0d9..5abf2428d5 100644 --- a/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte +++ b/packages/builder/src/components/automation/SetupPanel/RowSelector.svelte @@ -234,8 +234,36 @@ {#each schemaFields || [] as [field, schema]} {#if !schema.autocolumn && Object.hasOwn(editableFields, field)} -
- {#if isTestModal} + {#if isTestModal} + + {:else} + + onChange({ + row: { + [field]: e.detail, + }, + })} + {bindings} + allowJS={true} + updateOnChange={false} + drawerLeft="260px" + > onChange(change)} /> - {:else} - - onChange({ - row: { - [field]: e.detail, - }, - })} - {bindings} - allowJS={true} - updateOnChange={false} - drawerLeft="260px" - > - onChange(change)} - /> - - {/if} - - onChange({ - row: { [field]: null }, - meta: { fields: { [field]: null } }, - })} - /> -
+ + {/if}
{/if} {/each} @@ -369,12 +358,6 @@ color: var(--spectrum-global-color-gray-500); } - .prop-control-wrap { - display: grid; - grid-template-columns: 1fr min-content; - gap: var(--spacing-s); - } - /* Override for general json field override */ .prop-control-wrap :global(.icon.json-slot-icon) { right: 1px !important;