diff --git a/frontend/src/lib/components/table/Table.svelte b/frontend/src/lib/components/table/Table.svelte index 0eec088..cfc7a1f 100644 --- a/frontend/src/lib/components/table/Table.svelte +++ b/frontend/src/lib/components/table/Table.svelte @@ -42,7 +42,7 @@ if (!pagination && sortable?.length) { console.warn('You need to pass a pagination object to make the column sortable'); } - columnsLength = columns.length + 2; + columnsLength = columns.length + (hasActions ? 2 : 0); }); let currentPage = pagination && pagination.currentPage; @@ -82,10 +82,12 @@ {/each} - - - - + {#if hasActions} + + + + + {/if} {/each} {/if} diff --git a/frontend/src/lib/components/table/TableHeadCell.svelte b/frontend/src/lib/components/table/TableHeadCell.svelte index 855340c..e4dcaf0 100644 --- a/frontend/src/lib/components/table/TableHeadCell.svelte +++ b/frontend/src/lib/components/table/TableHeadCell.svelte @@ -10,7 +10,6 @@ export let size = ''; // last tells if it the last field column before the actions column export let last = false; - export let fillRest = false; export let isGhost = false; export let title = ''; @@ -40,7 +39,6 @@ class:w-48={size === 'small'} class:w-56={size === 'medium'} class:w-80={size === 'large'} - class:w-full={fillRest} >