[ui] disable fixed layout for Home tables

feat/vaults
Tomáš Mládek 2022-02-15 22:38:29 +01:00
parent 1176d2e7ae
commit 51cdd78023
No known key found for this signature in database
GPG Key ID: 65E225C8B3E2ED8A
2 changed files with 14 additions and 3 deletions

View File

@ -17,7 +17,9 @@
export let columns: string;
export let header = true;
export let orderByValue = false;
export let unfixed = false;
export let entries: UpEntry[];
export let editable = false;
@ -177,7 +179,7 @@
}
</script>
<table>
<table class:unfixed>
<colgroup>
{#if editable}
<col class="action-col" />
@ -294,6 +296,10 @@
width: 100%;
table-layout: fixed;
&.unfixed {
table-layout: auto;
}
border-spacing: 0.5em 0;
th {

View File

@ -56,7 +56,12 @@
{#if $lastVisitedQuery == undefined}
<Spinner centered />
{:else}
<Table columns="value, entity" entries={lastVisited} orderByValue />
<Table
columns="value, entity"
entries={lastVisited}
orderByValue
unfixed
/>
{/if}
</section>
{/if}
@ -67,7 +72,7 @@
{#if $latestQuery == undefined}
<Spinner centered />
{:else}
<Table columns="value, entity" entries={latest} orderByValue />
<Table columns="value, entity" entries={latest} orderByValue unfixed />
{/if}
</section>
{/if}