1
0
Fork 0
mirror of synced 2024-10-06 04:54:52 +13:00

Fix add row button not appearing when horizontal scrollbar is hidden

This commit is contained in:
Andrew Kingston 2023-03-31 12:13:00 +01:00
parent b2d2cf3989
commit ff4c0aed46

View file

@ -26,6 +26,9 @@
let touched = false
$: firstColumn = $stickyColumn || $visibleColumns[0]
$: console.log(firstColumn)
$: rowHovered = $hoveredRowId === "new"
$: containsSelectedCell = $selectedCellId?.startsWith("new-")
$: width = gutterWidth + ($stickyColumn?.width || 0)
@ -150,6 +153,7 @@
.add-button {
position: absolute;
left: 16px;
bottom: 16px;
z-index: 1;
transform: translateY(calc(16px + 100%));
transition: transform 130ms ease-out;