From c82d1711064f89980004bcf9f4eb302e19ef5f5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Wed, 28 Apr 2021 14:42:44 +0200 Subject: [PATCH] rename DrawerContentWithSidebar to DrawerContent and add sidebar check --- ...ithSidebar.svelte => DrawerContent.svelte} | 17 ++++-- packages/bbui/src/index.js | 2 +- .../PropertiesPanel/BindingPanel.svelte | 6 +- .../PropertyControls/DataSourceSelect.svelte | 58 +++++++++++-------- .../EventsEditor/EventEditor.svelte | 12 +--- 5 files changed, 54 insertions(+), 41 deletions(-) rename packages/bbui/src/Drawer/{DrawerContentWithSidebar.svelte => DrawerContent.svelte} (67%) diff --git a/packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte b/packages/bbui/src/Drawer/DrawerContent.svelte similarity index 67% rename from packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte rename to packages/bbui/src/Drawer/DrawerContent.svelte index f400caa5f5..33c3de1f62 100644 --- a/packages/bbui/src/Drawer/DrawerContentWithSidebar.svelte +++ b/packages/bbui/src/Drawer/DrawerContent.svelte @@ -1,8 +1,14 @@
-
- +
+ {#if $$slots.sidebar} + + {/if}
@@ -19,6 +25,9 @@ display: grid; grid-template-columns: 290px 1fr; } + .no-sidebar { + grid-template-columns: 1fr; + } .sidebar { border-right: var(--border-light); overflow: auto; diff --git a/packages/bbui/src/index.js b/packages/bbui/src/index.js index 6413493580..615982bb1b 100644 --- a/packages/bbui/src/index.js +++ b/packages/bbui/src/index.js @@ -10,7 +10,7 @@ export { default as Select } from "./Form/Select.svelte" export { default as Combobox } from "./Form/Combobox.svelte" export { default as Dropzone } from "./Form/Dropzone.svelte" export { default as Drawer } from "./Drawer/Drawer.svelte" -export { default as DrawerContentWithSidebar } from "./Drawer/DrawerContentWithSidebar.svelte" +export { default as DrawerContent } from "./Drawer/DrawerContent.svelte" export { default as Avatar } from "./Avatar/Avatar.svelte" export { default as ActionButton } from "./ActionButton/ActionButton.svelte" export { default as ActionGroup } from "./ActionGroup/ActionGroup.svelte" diff --git a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte index 16cc8409d5..eff76a4608 100644 --- a/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/BindingPanel.svelte @@ -1,6 +1,6 @@ - + @@ -121,7 +121,7 @@

{/if}
- +