[ui] .content in labelborder section

feat/vaults
Tomáš Mládek 2022-01-28 22:27:02 +01:00
parent 7dec8f40a1
commit 9d65c2da3d
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
3 changed files with 21 additions and 15 deletions

View File

@ -18,7 +18,7 @@
let availableWidgets: Widget[] = []; let availableWidgets: Widget[] = [];
$: { $: {
availableWidgets = [ availableWidgets = [
{ {
name: "table", name: "table",
icon: "table", icon: "table",
components: [ components: [
@ -73,19 +73,21 @@
</div> </div>
{/if} {/if}
</header> </header>
{#if !reverse} <div class="content">
{#each components as component} {#if !reverse}
<svelte:component {#each components as component}
this={component.component} <svelte:component
{...component.props || {}} this={component.component}
{entries} {...component.props || {}}
{editable} {entries}
on:change {editable}
/> on:change
{/each} />
{:else} {/each}
<Table columns="entity, attribute" {entries} /> {:else}
{/if} <Table columns="entity, attribute" {entries} />
{/if}
</div>
</section> </section>
<style scoped lang="scss"> <style scoped lang="scss">

View File

@ -28,4 +28,8 @@ section.labelborder {
left: 1ex; left: 1ex;
} }
} }
.content {
padding: .25em;
}
} }

View File

@ -66,6 +66,6 @@
.content { .content {
background: var(--background); background: var(--background);
border-radius: 4px; border-radius: 4px;
padding: 0.5em; padding: 0.5em !important;
} }
</style> </style>