experiment/tanstack #172

Merged
niggl merged 106 commits from experiment/tanstack into dev 2023-04-12 19:31:47 +00:00
Showing only changes of commit 9c13b2f9e9 - Show all commits

View File

@ -167,8 +167,7 @@
<p class="font-bold">{$_("loading-cards")}</p> <p class="font-bold">{$_("loading-cards")}</p>
<p class="text-sm">{$_("this-might-take-a-moment")}</p> <p class="text-sm">{$_("this-might-take-a-moment")}</p>
</div> </div>
{:else} {:else if current_cards.length === 0}
{#if current_cards.length === 0}
<CardsEmptyState /> <CardsEmptyState />
{:else} {:else}
<div class="h-12 mt-1"> <div class="h-12 mt-1">
@ -218,6 +217,7 @@
{/if} {/if}
<GenerateRunnerCards bind:cards_show bind:generate_cards /> <GenerateRunnerCards bind:cards_show bind:generate_cards />
</div> </div>
<div class="overflow-x-auto">
<table class="w-full"> <table class="w-full">
<thead> <thead>
{#each $table.getHeaderGroups() as headerGroup} {#each $table.getHeaderGroups() as headerGroup}
@ -260,21 +260,7 @@
{/each} {/each}
</tbody> </tbody>
</table> </table>
</div>
<TableBottom {table} {selected} /> <TableBottom {table} {selected} />
{/if} {/if}
{/if}
{/if} {/if}
<style>
table tbody {
display: block;
overflow-y: scroll;
}
table thead,
table tbody tr {
display: table;
width: 100%;
table-layout: fixed;
}
</style>