[ui] fix overflow on Home

feat/vaults
Tomáš Mládek 2022-02-15 23:15:26 +01:00
parent 0b52e11f41
commit c27c9dbb0a
No known key found for this signature in database
GPG Key ID: 65E225C8B3E2ED8A
2 changed files with 12 additions and 9 deletions

View File

@ -19,7 +19,7 @@
export let header = true;
export let orderByValue = false;
export let unfixed = false;
export let columnWidths: string[] = [];
export let entries: UpEntry[];
export let editable = false;
@ -179,13 +179,20 @@
}
</script>
<table class:unfixed>
<table>
<colgroup>
{#if editable}
<col class="action-col" />
{/if}
{#each displayColumns as column}
<col class="{column}-col" />
{#each displayColumns as column, idx}
{#if columnWidths.length}
<col
class="{column}-col"
style="width: {columnWidths[idx] || 'unset'}"
/>
{:else}
<col class="{column}-col" />
{/if}
{/each}
</colgroup>
@ -296,10 +303,6 @@
width: 100%;
table-layout: fixed;
&.unfixed {
table-layout: auto;
}
border-spacing: 0.5em 0;
th {

View File

@ -100,8 +100,8 @@ const TYPE_WIDGETS: { [key: string]: Widget[] } = {
component: Table,
props: {
columns: "value, entity",
columnWidths: ["13em"],
orderByValue: true,
unfixed: true,
header: false,
},
},