Update button column to account for ability to add rows

This commit is contained in:
Andrew Kingston 2024-09-02 08:47:15 +01:00
parent c5e27b860f
commit 2d52eff96f
No known key found for this signature in database
1 changed files with 16 additions and 11 deletions

View File

@ -20,6 +20,7 @@
showVScrollbar,
showHScrollbar,
dispatch,
config,
} = getContext("grid")
let container
@ -103,9 +104,12 @@
</GridCell>
</div>
{/each}
{#if $config.canAddRows}
<div
class="row blank"
on:mouseenter={$isDragging ? null : () => ($hoveredRowId = BlankRowID)}
on:mouseenter={$isDragging
? null
: () => ($hoveredRowId = BlankRowID)}
on:mouseleave={$isDragging ? null : () => ($hoveredRowId = null)}
>
<GridCell
@ -114,6 +118,7 @@
on:click={() => dispatch("add-row-inline")}
/>
</div>
{/if}
</GridScrollWrapper>
</div>
</div>