Add labels to column config drawer
This commit is contained in:
parent
8e853cdc08
commit
fe464b5ebc
|
@ -6,6 +6,7 @@
|
||||||
Layout,
|
Layout,
|
||||||
Input,
|
Input,
|
||||||
Select,
|
Select,
|
||||||
|
Label,
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { flip } from "svelte/animate"
|
import { flip } from "svelte/animate"
|
||||||
import { dndzone } from "svelte-dnd-action"
|
import { dndzone } from "svelte-dnd-action"
|
||||||
|
@ -75,6 +76,12 @@
|
||||||
on:finalize={handleFinalize}
|
on:finalize={handleFinalize}
|
||||||
on:consider={updateColumnOrder}
|
on:consider={updateColumnOrder}
|
||||||
>
|
>
|
||||||
|
<div class="column">
|
||||||
|
<div />
|
||||||
|
<Label size="L">Column</Label>
|
||||||
|
<Label size="L">Label</Label>
|
||||||
|
<div />
|
||||||
|
</div>
|
||||||
{#each columns as column (column.id)}
|
{#each columns as column (column.id)}
|
||||||
<div class="column" animate:flip={{ duration: flipDurationMs }}>
|
<div class="column" animate:flip={{ duration: flipDurationMs }}>
|
||||||
<div
|
<div
|
||||||
|
@ -102,7 +109,8 @@
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div>
|
<div class="column">
|
||||||
|
<div />
|
||||||
<Button secondary icon="Add" on:click={addColumn}>Add Column</Button>
|
<Button secondary icon="Add" on:click={addColumn}>Add Column</Button>
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
|
@ -124,9 +132,8 @@
|
||||||
}
|
}
|
||||||
.column {
|
.column {
|
||||||
gap: var(--spacing-l);
|
gap: var(--spacing-l);
|
||||||
display: flex;
|
display: grid;
|
||||||
flex-direction: row;
|
grid-template-columns: 20px 1fr 1fr 20px;
|
||||||
justify-content: space-between;
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: var(--border-radius-s);
|
border-radius: var(--border-radius-s);
|
||||||
transition: background-color ease-in-out 130ms;
|
transition: background-color ease-in-out 130ms;
|
||||||
|
@ -134,10 +141,6 @@
|
||||||
.column:hover {
|
.column:hover {
|
||||||
background-color: var(--spectrum-global-color-gray-100);
|
background-color: var(--spectrum-global-color-gray-100);
|
||||||
}
|
}
|
||||||
.column > :global(.spectrum-Form-item) {
|
|
||||||
flex: 1 1 auto;
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
.handle {
|
.handle {
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
|
|
Loading…
Reference in New Issue