1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

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

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}