From 1283fe520ebd890ddf14dc252ebb5003e96430f5 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 19 Mar 2021 14:26:37 +0000 Subject: [PATCH] Fix massive widths on remaining button actions --- .../EventsEditor/actions/ExecuteQuery.svelte | 65 +++++++++++-------- .../EventsEditor/actions/LogIn.svelte | 4 +- .../EventsEditor/actions/LogOut.svelte | 11 +++- .../EventsEditor/actions/NavigateTo.svelte | 2 + .../actions/TriggerAutomation.svelte | 5 ++ .../EventsEditor/actions/ValidateForm.svelte | 2 + 6 files changed, 58 insertions(+), 31 deletions(-) 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 e18336fab5..a5cbd7e69d 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 @@ -24,36 +24,45 @@ } - - - - - -{#if parameters.datasourceId} - - + {#each $backendUiStore.datasources as datasource} + {/each} -{/if} - + -{#if query?.parameters?.length > 0} - - -{/if} + {#if parameters.datasourceId} + + + {/if} + + + + {#if query?.parameters?.length > 0} + + + {/if} + + + diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogIn.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogIn.svelte index c49369bf29..eee4dc2bc7 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogIn.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogIn.svelte @@ -30,7 +30,9 @@ display: grid; column-gap: var(--spacing-l); row-gap: var(--spacing-s); - grid-template-columns: auto 1fr auto 1fr; + grid-template-columns: auto 1fr; align-items: baseline; + max-width: 800px; + margin: 0 auto; } diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogOut.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogOut.svelte index 2b0aad8342..7306ed4e61 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogOut.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/LogOut.svelte @@ -1,7 +1,14 @@ -
This action doesn't require any additional settings.
+ + +
+ This action doesn't require any additional settings. +
diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/NavigateTo.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/NavigateTo.svelte index 65071837e7..b9567c6523 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/NavigateTo.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/NavigateTo.svelte @@ -27,6 +27,8 @@ display: flex; flex-direction: row; align-items: baseline; + max-width: 800px; + margin: 0 auto; } .root :global(> div) { diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/TriggerAutomation.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/TriggerAutomation.svelte index 1a3276800a..4ae5e320fc 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/TriggerAutomation.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/TriggerAutomation.svelte @@ -101,6 +101,11 @@