From 32c2aa00b0cbd098be4490603a067c0c25428c24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Keviin=20=C3=85berg=20Kultalahti?= Date: Fri, 16 Apr 2021 11:28:53 +0200 Subject: [PATCH] Component panel now uses Tabs component --- .../FrontendNavigatePane.svelte | 1 - .../PropertiesPanel/PropertiesPanel.svelte | 46 +++++++++---------- .../design/[assetType]/_layout.svelte | 2 - 3 files changed, 23 insertions(+), 26 deletions(-) diff --git a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte index 6f4872dec4..5bf448ec3d 100644 --- a/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte +++ b/packages/builder/src/components/design/NavigationPanel/FrontendNavigatePane.svelte @@ -27,7 +27,6 @@ ] let modal - let routes = {} $: selected = tabs.find(t => t.key === $params.assetType).title const navigate = ({detail}) => { diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte b/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte index 38f6b521fa..26e898c8d0 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte +++ b/packages/builder/src/components/design/PropertiesPanel/PropertiesPanel.svelte @@ -1,6 +1,7 @@ - (selectedCategory = category)} - {categories} - {selectedCategory} /> - -{#if definition && definition.name} -
{definition.name}
-{/if} - -
- {#if selectedCategory.value === 'design'} - + +
+ {#if definition && definition.name} +
{definition.name}
+ {/if} + - {:else if selectedCategory.value === 'settings'} - + + +
+ {#if definition && definition.name} +
{definition.name}
+ {/if} + - {/if} -
+
+
+