From e274eeffce37ed200d58ac8d2250bfe7f5bb0824 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 17 Aug 2021 11:33:09 +0100 Subject: [PATCH] Tidy up options drawer styles --- .../OptionsEditor/OptionsDrawer.svelte | 67 +++++++++---------- .../OptionsEditor/OptionsEditor.svelte | 2 +- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsDrawer.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsDrawer.svelte index 52fe51912c..340c1eb107 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsDrawer.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsDrawer.svelte @@ -29,39 +29,38 @@
- - - {#if !options.length} - Add an option to get started. - {/if} - - -
- {#each options as option (option.id)} - - - removeOption(option.id)} - /> - {/each} -
+ + {#if !options.length} + Add an option to get started. + {/if} + {#if options?.length} +
+ {#each options as option (option.id)} + + + removeOption(option.id)} + /> + {/each} +
+ {/if}
- +
@@ -70,7 +69,7 @@ diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsEditor.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsEditor.svelte index 3ab3f9a24a..e486312fe9 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsEditor.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/OptionsEditor/OptionsEditor.svelte @@ -22,7 +22,7 @@ Define Options - Add custom picker options + Define the options for this picker.