From ff4c0aed46e7e459683cd62c9d3586b55a141139 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Fri, 31 Mar 2023 12:13:00 +0100 Subject: [PATCH] Fix add row button not appearing when horizontal scrollbar is hidden --- .../frontend-core/src/components/sheet/layout/NewRow.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/frontend-core/src/components/sheet/layout/NewRow.svelte b/packages/frontend-core/src/components/sheet/layout/NewRow.svelte index 124786fcd2..9aba724ad5 100644 --- a/packages/frontend-core/src/components/sheet/layout/NewRow.svelte +++ b/packages/frontend-core/src/components/sheet/layout/NewRow.svelte @@ -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;