From ff4f7b31e384d055bb53e7b543cf05029c754a45 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 8 Oct 2020 09:48:24 +0100 Subject: [PATCH] Fix styles in event editor modal --- .../EventsEditor/EventEditorModal.svelte | 11 ++--------- .../EventsEditor/EventPropertyControl.svelte | 2 +- .../EventsEditor/actions/CreateRecord.svelte | 2 +- .../EventsEditor/actions/NavigateTo.svelte | 2 +- .../EventsEditor/actions/UpdateRecord.svelte | 2 +- 5 files changed, 6 insertions(+), 13 deletions(-) diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte index 020cf51fa5..0e45f2fcac 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/EventEditorModal.svelte @@ -86,9 +86,7 @@ {#each actions as action, index}
- - {index + 1}. {action[EVENT_TYPE_MEMBER_NAME]} - + {index + 1}. {action[EVENT_TYPE_MEMBER_NAME]}
@@ -143,8 +141,7 @@ .actions-container { flex: 1; - min-height: 0px; - padding-bottom: var(--spacing-s); + min-height: 0; padding-top: 0; border: var(--border-light); border-width: 0 0 1px 0; @@ -154,10 +151,6 @@ .action-container { border: var(--border-light); border-width: 1px 0 0 0; - padding-left: var(--spacing-xl); - padding-right: var(--spacing-xl); - padding-top: 0; - padding-bottom: 0; } .selected-action-container { diff --git a/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte b/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte index 6b0beb71b8..044d0ca5d5 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/EventPropertyControl.svelte @@ -12,6 +12,6 @@ - + diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/CreateRecord.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/CreateRecord.svelte index b84dcd58a4..b3a6079284 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/actions/CreateRecord.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/actions/CreateRecord.svelte @@ -60,7 +60,7 @@ align-items: baseline; } - .root :global(.relative:nth-child(2)) { + .root :global(> div:nth-child(2)) { grid-column-start: 2; grid-column-end: 6; } diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte index 659fb954eb..0b4ab2860e 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/actions/NavigateTo.svelte @@ -22,7 +22,7 @@ align-items: baseline; } - .root :global(.relative) { + .root :global(> div) { flex: 1; margin-left: var(--spacing-l); } diff --git a/packages/builder/src/components/userInterface/EventsEditor/actions/UpdateRecord.svelte b/packages/builder/src/components/userInterface/EventsEditor/actions/UpdateRecord.svelte index 6ee3a2aed4..229fec90c5 100644 --- a/packages/builder/src/components/userInterface/EventsEditor/actions/UpdateRecord.svelte +++ b/packages/builder/src/components/userInterface/EventsEditor/actions/UpdateRecord.svelte @@ -119,7 +119,7 @@ align-items: baseline; } - .root :global(.relative:nth-child(2)) { + .root :global(> div:nth-child(2)) { grid-column-start: 2; grid-column-end: 6; }