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

View File

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

View File

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