From 4cd6fef492171839f2d67f438acd8668b07d7171 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Mon, 1 Mar 2021 17:48:52 +0000 Subject: [PATCH] Updating the properties panel to show the component type rather than name (no point in repeating) and some final styling changes to the one to many update. --- .../backend/DataTable/modals/CreateEditColumn.svelte | 9 +++++---- .../design/PropertiesPanel/PropertiesPanel.svelte | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index 812647d1cc..b4a9283352 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -257,9 +257,9 @@ value={value} bind:group={field.relationshipType}>
- + - +
{/each} @@ -326,8 +326,9 @@ .rel-type-center { font-weight: 500; color: var(--grey-6); - margin-right: 10px; - margin-left: 10px; + margin-right: 8px; + margin-left: 8px; + padding: 1px 3px 1px 3px; background: var(--grey-3); border-radius: 2px; } diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte index 6291917cd0..39eb2752bf 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte @@ -73,8 +73,8 @@ {categories} {selectedCategory} /> -{#if showDisplayName} -
{$selectedComponent._instanceName}
+{#if definition && definition.name} +
{definition.name}
{/if}