From e5742dc7f647c8775df2fda19242e7b992c3cb01 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Thu, 22 Oct 2020 20:22:09 +0100 Subject: [PATCH] Change component bar to popovers and adjust page layout to match --- .../src/components/common/NavItem.svelte | 3 +- .../userInterface/CategoryTab.svelte | 4 + .../ComponentSelectionList.svelte | 94 +++++-------------- .../userInterface/ItemTab/Item.svelte | 16 ++-- .../userInterface/ItemTab/Tab.svelte | 10 +- .../userInterface/temporaryPanelStructure.js | 2 +- .../pages/[application]/design/_layout.svelte | 6 +- 7 files changed, 48 insertions(+), 87 deletions(-) diff --git a/packages/builder/src/components/common/NavItem.svelte b/packages/builder/src/components/common/NavItem.svelte index 7e21689c3f..8cbfa63499 100644 --- a/packages/builder/src/components/common/NavItem.svelte +++ b/packages/builder/src/components/common/NavItem.svelte @@ -26,7 +26,7 @@
{#if withArrow}
- +
{/if} {#if icon} @@ -81,6 +81,7 @@ } .icon.arrow { margin: 0 -2px 0 -6px; + font-size: 12px; } .icon.arrow.opened { transform: rotate(90deg); diff --git a/packages/builder/src/components/userInterface/CategoryTab.svelte b/packages/builder/src/components/userInterface/CategoryTab.svelte index 3b5dce84e0..00ed5e82ab 100644 --- a/packages/builder/src/components/userInterface/CategoryTab.svelte +++ b/packages/builder/src/components/userInterface/CategoryTab.svelte @@ -18,9 +18,13 @@ diff --git a/packages/builder/src/components/userInterface/ItemTab/Item.svelte b/packages/builder/src/components/userInterface/ItemTab/Item.svelte index ce4f602f03..e5a67118e9 100644 --- a/packages/builder/src/components/userInterface/ItemTab/Item.svelte +++ b/packages/builder/src/components/userInterface/ItemTab/Item.svelte @@ -12,20 +12,16 @@ diff --git a/packages/builder/src/components/userInterface/ItemTab/Tab.svelte b/packages/builder/src/components/userInterface/ItemTab/Tab.svelte index db16acf3d6..4e3aacb9c4 100644 --- a/packages/builder/src/components/userInterface/ItemTab/Tab.svelte +++ b/packages/builder/src/components/userInterface/ItemTab/Tab.svelte @@ -9,7 +9,7 @@ let category = list - const handleClick = item => { + const handleClick = (item) => { if (item.children && item.children.length > 0) { list = item } else { @@ -53,10 +53,12 @@ .list { display: flex; - flex-direction: row; + flex-direction: column; justify-content: flex-start; - align-items: center; - gap: var(--spacing-m); + align-items: stretch; + gap: var(--spacing-s); flex-wrap: wrap; + padding: var(--spacing-l); + min-width: 120px; } diff --git a/packages/builder/src/components/userInterface/temporaryPanelStructure.js b/packages/builder/src/components/userInterface/temporaryPanelStructure.js index 78258e99f3..1c4bc632a6 100644 --- a/packages/builder/src/components/userInterface/temporaryPanelStructure.js +++ b/packages/builder/src/components/userInterface/temporaryPanelStructure.js @@ -631,7 +631,7 @@ export default { }, }, { - name: "Groupedbar", + name: "Grouped Bar", _component: "@budibase/standard-components/groupedbar", description: "Groupedbar chart", icon: "ri-bar-chart-grouped-fill", diff --git a/packages/builder/src/pages/[application]/design/_layout.svelte b/packages/builder/src/pages/[application]/design/_layout.svelte index 7bd37902ad..529d97949c 100644 --- a/packages/builder/src/pages/[application]/design/_layout.svelte +++ b/packages/builder/src/pages/[application]/design/_layout.svelte @@ -73,7 +73,7 @@ background-color: var(--white); display: flex; flex-direction: column; - gap: var(--spacing-m); + gap: var(--spacing-l); padding: var(--spacing-l) var(--spacing-xl); overflow-y: auto; border-right: 1px solid var(--grey-2); @@ -86,13 +86,13 @@ flex-direction: column; justify-content: flex-start; align-items: stretch; - gap: var(--spacing-m); + gap: var(--spacing-l); + padding: var(--spacing-l) 40px var(--spacing-xl) 40px; } .preview-content { background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.05); flex: 1 1 auto; - margin: var(--spacing-xl) 40px; } .components-pane {