Fix add row button not appearing when horizontal scrollbar is hidden
This commit is contained in:
parent
b2d2cf3989
commit
ff4c0aed46
|
@ -26,6 +26,9 @@
|
||||||
let touched = false
|
let touched = false
|
||||||
|
|
||||||
$: firstColumn = $stickyColumn || $visibleColumns[0]
|
$: firstColumn = $stickyColumn || $visibleColumns[0]
|
||||||
|
|
||||||
|
$: console.log(firstColumn)
|
||||||
|
|
||||||
$: rowHovered = $hoveredRowId === "new"
|
$: rowHovered = $hoveredRowId === "new"
|
||||||
$: containsSelectedCell = $selectedCellId?.startsWith("new-")
|
$: containsSelectedCell = $selectedCellId?.startsWith("new-")
|
||||||
$: width = gutterWidth + ($stickyColumn?.width || 0)
|
$: width = gutterWidth + ($stickyColumn?.width || 0)
|
||||||
|
@ -150,6 +153,7 @@
|
||||||
.add-button {
|
.add-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 16px;
|
left: 16px;
|
||||||
|
bottom: 16px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
transform: translateY(calc(16px + 100%));
|
transform: translateY(calc(16px + 100%));
|
||||||
transition: transform 130ms ease-out;
|
transition: transform 130ms ease-out;
|
||||||
|
|
Loading…
Reference in New Issue