fix: assign column length of table actions based on number of actions

This commit is contained in:
Ruben Fiszel
2023-10-30 16:37:24 +01:00
parent 302649faa8
commit 0c672e7e18
@@ -413,8 +413,9 @@
class="p-2"
on:keypress={() => toggleRow(row)}
on:click={() => toggleRow(row)}
style="width: {(actionButtons ?? []).length * 130}px"
>
<div class="center-center h-full w-full flex-wrap gap-1.5">
<div class="center-center h-full w-full flex-wrap gap-2">
{#each actionButtons as actionButton, actionIndex (actionButton?.id)}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<RowWrapper