Update header cell hover cursor

This commit is contained in:
Andrew Kingston 2023-04-24 13:43:11 +01:00
parent 726945ea61
commit 9594aae29d
1 changed files with 5 additions and 0 deletions

View File

@ -101,6 +101,7 @@
style="flex: 0 0 {column.width}px;"
bind:this={anchor}
class:disabled={$isReordering || $isResizing}
class:sticky={idx === "sticky"}
>
<GridCell
on:mousedown={onMouseDown}
@ -194,6 +195,10 @@
.header-cell {
display: flex;
}
.header-cell:not(.sticky):hover,
.header-cell:not(.sticky) :global(.cell:hover) {
cursor: grab;
}
.header-cell.disabled {
pointer-events: none;
}