bugfixes after team usage

This commit is contained in:
Martin McKeaveney 2020-08-11 17:58:01 +01:00
parent de9911aad8
commit fccad2f710
4 changed files with 26 additions and 19 deletions

View File

@ -99,7 +99,7 @@
<EditRowPopover {row} /> <EditRowPopover {row} />
</td> </td>
{#each headers as header} {#each headers as header}
<td class="hoverable"> <td>
{#if schema[header].type === 'link'} {#if schema[header].type === 'link'}
<LinkedRecord field={schema[header]} ids={row[header]} /> <LinkedRecord field={schema[header]} ids={row[header]} />
{:else}{row[header] || ''}{/if} {:else}{row[header] || ''}{/if}

View File

@ -124,8 +124,14 @@
} }
.field { .field {
margin-top: var(--spacing-xl); display: grid;
margin-bottom: var(--spacing-xl); grid-template-columns: auto 20px 1fr;
align-items: center;
grid-gap: 5px;
font-size: 14px;
font-weight: 500;
margin-bottom: var(--spacing-l);
font-family: var(--font-normal);
} }
.button-margin-3 { .button-margin-3 {

View File

@ -31,6 +31,9 @@
{/each} {/each}
</Select> </Select>
{:else} {:else}
{#if type === 'checkbox'}
<label>{label}</label>
{/if}
<Input <Input
thin thin
placeholder={label} placeholder={label}
@ -41,3 +44,12 @@
on:input={handleInput} on:input={handleInput}
on:change={handleInput} /> on:change={handleInput} />
{/if} {/if}
<style>
label {
font-weight: 500;
font-size: var(--font-size-s);
float: left;
margin-right: 8px;
}
</style>

View File

@ -11,21 +11,6 @@
const { open, close } = getContext("simple-modal") const { open, close } = getContext("simple-modal")
let HEADINGS = [
{
title: "Tables",
key: "TABLES",
},
{
title: "Tables",
key: "NAVIGATE",
},
{
title: "Add",
key: "ADD",
},
]
$: selectedTab = $backendUiStore.tabs.NAVIGATION_PANEL $: selectedTab = $backendUiStore.tabs.NAVIGATION_PANEL
function selectModel(model, fieldId) { function selectModel(model, fieldId) {
@ -44,7 +29,7 @@
{#if $backendUiStore.selectedDatabase && $backendUiStore.selectedDatabase._id} {#if $backendUiStore.selectedDatabase && $backendUiStore.selectedDatabase._id}
<div class="hierarchy"> <div class="hierarchy">
<div class="components-list-container"> <div class="components-list-container">
<h3>Tables</h3> <h4>Tables</h4>
<CreateTablePopover /> <CreateTablePopover />
<div class="hierarchy-items-container"> <div class="hierarchy-items-container">
{#each $backendUiStore.models as model} {#each $backendUiStore.models as model}
@ -63,6 +48,10 @@
</div> </div>
<style> <style>
h4 {
font-weight: 500;
}
.items-root { .items-root {
display: flex; display: flex;
flex-direction: column; flex-direction: column;