From 2f559c3867230fa2bb40228d3f7008829c0f4777 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 20 Jul 2021 14:34:27 +0100 Subject: [PATCH] Update events editor and action components with new drawer styles --- .../EventsEditor/EventEditor.svelte | 130 +++++++++--------- .../EventsEditor/actions/ExecuteQuery.svelte | 2 +- .../NavigationEditor/NavigationDrawer.svelte | 9 +- 3 files changed, 71 insertions(+), 70 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte index 843f33cab9..444aab5fe9 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/EventEditor.svelte @@ -73,54 +73,49 @@ -
- - - - {#each actionTypes as actionType} - - {actionType.name} - - {/each} - - - {#if actions && actions.length > 0} -
- {#each actions as action, index (action.id)} -
-
- {index + 1}. - {action[EVENT_TYPE_KEY]} -
-
deleteAction(index)} - style="margin-left: auto;" - > - -
+ + {#if actions && actions.length > 0} +
+ {#each actions as action, index (action.id)} +
+ +
+ {index + 1}. {action[EVENT_TYPE_KEY]}
- {/each} -
- {/if} - -
- + deleteAction(index)} + /> +
+ {/each} +
+ {/if} + + + {#each actionTypes as actionType} + + {actionType.name} + + {/each} + +
+ {#if selectedAction}
diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/ExecuteQuery.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/ExecuteQuery.svelte index 5d298e4b9f..d4e70dac05 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/ExecuteQuery.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/ExecuteQuery.svelte @@ -25,7 +25,7 @@ } - +