fix column alignment for first column in table

This commit is contained in:
Peter Clement 2023-08-15 11:55:33 +01:00
parent 9fe02e7963
commit 9ac5f60338
1 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@
(total, col) => (total += col.width),
0
)
$: console.log($renderedColumns)
$: end = $hiddenColumnsWidth + columnsWidth - 1 - $scroll.left
$: left = Math.min($width - 40, end)
@ -32,7 +33,7 @@
<Popover
bind:open
{anchor}
align="right"
align={$renderedColumns.length ? "right" : "left"}
offset={0}
popoverTarget={document.getElementById(`add-column-button`)}
animate={false}