Fix design of automation SchemaSetup

This commit is contained in:
Andrew Kingston 2022-03-28 16:56:42 +01:00
parent 7f66a3cace
commit 07931043be
1 changed files with 5 additions and 48 deletions

View File

@ -1,5 +1,5 @@
<script> <script>
import { Input, Select } from "@budibase/bbui" import { Input, Select, Button } from "@budibase/bbui"
import { createEventDispatcher } from "svelte" import { createEventDispatcher } from "svelte"
const dispatch = createEventDispatcher() const dispatch = createEventDispatcher()
@ -62,9 +62,6 @@
</script> </script>
<div class="root"> <div class="root">
<div class="add-field">
<i class="ri-add-line" on:click={addField} />
</div>
<div class="spacer" /> <div class="spacer" />
{#each fieldsArray as field} {#each fieldsArray as field}
<div class="field"> <div class="field">
@ -88,6 +85,7 @@
/> />
</div> </div>
{/each} {/each}
<Button quiet secondary icon="Add" on:click={addField}>Add field</Button>
</div> </div>
<style> <style>
@ -103,52 +101,11 @@
.field { .field {
max-width: 100%; max-width: 100%;
background-color: var(--grey-2);
margin-bottom: var(--spacing-m); margin-bottom: var(--spacing-m);
border-style: solid;
border-width: 1px;
border-color: var(--grey-4);
display: grid; display: grid;
/*grid-template-rows: auto auto; grid-template-columns: 1fr 1fr auto;
grid-template-columns: auto;*/
position: relative; position: relative;
} align-items: center;
gap: var(--spacing-m);
.field :global(select) {
padding: var(--spacing-xs) 2rem var(--spacing-m) var(--spacing-s) !important;
font-size: var(--font-size-xs);
color: var(--grey-7);
}
.field :global(.pointer) {
padding-bottom: var(--spacing-m) !important;
color: var(--grey-2);
}
.field :global(input) {
padding: var(--spacing-m) var(--spacing-xl) var(--spacing-xs)
var(--spacing-m);
font-size: var(--font-size-s);
font-weight: bold;
}
.remove-field {
cursor: pointer;
color: var(--grey-6);
position: absolute;
top: var(--spacing-m);
right: 3px;
}
.remove-field:hover {
color: var(--black);
}
.add-field {
text-align: right;
}
.add-field > i {
cursor: pointer;
} }
</style> </style>