From 92c74bab0fb85e298b21a16dd35b17b7b78b41cc Mon Sep 17 00:00:00 2001 From: Michael Shanks Date: Wed, 26 Feb 2020 16:36:30 +0000 Subject: [PATCH] Conflicts from PR #122 from @pngwyn --- packages/builder/src/PackageRoot.svelte | 1 - packages/builder/src/common/Select.svelte | 1 - .../ComponentSelectionList.svelte | 34 +++++++++++-------- .../ComponentsPaneSwitcher.svelte | 16 +++++---- .../userInterface/UserInterfaceRoot.svelte | 13 +++++-- 5 files changed, 38 insertions(+), 27 deletions(-) diff --git a/packages/builder/src/PackageRoot.svelte b/packages/builder/src/PackageRoot.svelte index 6652c74a1f..ccc3d29829 100644 --- a/packages/builder/src/PackageRoot.svelte +++ b/packages/builder/src/PackageRoot.svelte @@ -56,7 +56,6 @@ height: 48px; background: white; padding: 0px 15px 0 1.8rem; - width: 100%; display: flex; align-items: center; border-bottom: 1px solid #ddd; diff --git a/packages/builder/src/common/Select.svelte b/packages/builder/src/common/Select.svelte index 3f5a0a4dae..0e09bc7d2b 100644 --- a/packages/builder/src/common/Select.svelte +++ b/packages/builder/src/common/Select.svelte @@ -37,7 +37,6 @@ appearance: none; background: #fff; border: 1px solid #ccc; - height: 35px; } .arrow { diff --git a/packages/builder/src/userInterface/ComponentSelectionList.svelte b/packages/builder/src/userInterface/ComponentSelectionList.svelte index 80e7ab501d..b123350f10 100644 --- a/packages/builder/src/userInterface/ComponentSelectionList.svelte +++ b/packages/builder/src/userInterface/ComponentSelectionList.svelte @@ -35,13 +35,16 @@ $: templatesByComponent = groupBy(t => t.component)($store.templates) $: hierarchy = $store.hierarchy $: libraryModules = $store.libraries - $: standaloneTemplates = pipe(templatesByComponent, [ - values, - flatten, - filter(t => !$store.components.some(c => c.name === t.component)), - map(t => ({ name: splitName(t.component).componentName, template: t })), - uniqBy(t => t.name), - ]) + $: standaloneTemplates = pipe( + templatesByComponent, + [ + values, + flatten, + filter(t => !$store.components.some(c => c.name === t.component)), + map(t => ({ name: splitName(t.component).componentName, template: t })), + uniqBy(t => t.name), + ] + ) const addRootComponent = (component, allComponents) => { const { libName } = splitName(component.name) @@ -122,7 +125,7 @@
-