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.

This commit is contained in:
mike12345567 2021-03-01 17:48:52 +00:00
parent 0c8026c5ce
commit 7b90566769
2 changed files with 7 additions and 6 deletions

View File

@ -257,9 +257,9 @@
value={value}
bind:group={field.relationshipType}>
<div class="radio-button-labels">
<label class="rel-type-label" for={value}>{name.split(" has ")[0]}</label>
<label for={value}>{name.split("has")[0]}</label>
<label class="rel-type-center" for={value}>has</label>
<label class="rel-type-label" for={value}>{name.split(" has ")[1]}</label>
<label for={value}>{name.split("has")[1]}</label>
</div>
</Radio>
{/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;
}

View File

@ -73,8 +73,8 @@
{categories}
{selectedCategory} />
{#if showDisplayName}
<div class="instance-name">{$selectedComponent._instanceName}</div>
{#if definition && definition.name}
<div class="instance-name">{definition.name}</div>
{/if}
<div class="component-props-container">