diff --git a/src/lib/components/Table/Table.svelte b/src/lib/components/Table/Table.svelte index 0ddcb39..211b86b 100644 --- a/src/lib/components/Table/Table.svelte +++ b/src/lib/components/Table/Table.svelte @@ -30,6 +30,7 @@ $effect(() => { sortedBy = null; sortDirection = 'asc'; + columnWidths = {}; }); const sortedRows = $derived( @@ -77,7 +78,7 @@ function handleResize(e: MouseEvent) { if (!isResizing) return; const width = startWidth + (e.pageX - startX); - columnWidths[isResizing] = Math.max(50, width); + columnWidths[isResizing] = Math.max(100, width); } function stopResize() { @@ -194,7 +195,7 @@ } table { - width: 100%; + width: min-content; border-collapse: separate; border-spacing: 0; table-layout: fixed;