From 960a39fbf45fda61938d4645a01bb9876dcfcd9a Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sun, 5 Oct 2025 06:57:52 +0200 Subject: [PATCH] refactor: cleanup dragging cursor indicator --- apps/client/src/features/rundown/rundown-delay/RundownDelay.tsx | 1 - apps/client/src/features/rundown/rundown-event/RundownEvent.tsx | 1 - apps/client/src/features/rundown/rundown-group/RundownGroup.tsx | 2 +- .../src/features/rundown/rundown-milestone/RundownMilestone.tsx | 1 - .../cuesheet-table/cuesheet-table-elements/SortableCell.tsx | 1 - 5 files changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/client/src/features/rundown/rundown-delay/RundownDelay.tsx b/apps/client/src/features/rundown/rundown-delay/RundownDelay.tsx index 8cb2f0bc9..b3ae36237 100644 --- a/apps/client/src/features/rundown/rundown-delay/RundownDelay.tsx +++ b/apps/client/src/features/rundown/rundown-delay/RundownDelay.tsx @@ -37,7 +37,6 @@ export default function RundownDelay({ data, hasCursor }: RundownDelayProps) { const dragStyle = { zIndex: isDragging ? 2 : 'inherit', - cursor: isDragging ? 'grabbing' : 'grab', transform: CSS.Translate.toString(transform), transition, }; diff --git a/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx b/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx index 2e067e382..41899c29e 100644 --- a/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx +++ b/apps/client/src/features/rundown/rundown-event/RundownEvent.tsx @@ -205,7 +205,6 @@ export default function RundownEvent({ const dragStyle = { zIndex: isDragging ? 2 : 'inherit', - cursor: isDragging ? 'grabbing' : 'grab', transform: CSS.Translate.toString(transform), transition, }; diff --git a/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx b/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx index 1078a3f10..199e6eb44 100644 --- a/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx +++ b/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx @@ -114,7 +114,7 @@ export default function RundownGroup({ data, hasCursor, collapsed, onCollapse }: zIndex: isDragging ? 2 : 'inherit', transform: CSS.Translate.toString(transform), transition, - cursor: isOver ? (isValidDrop ? 'grabbing' : 'no-drop') : 'grab', + cursor: isOver ? (isValidDrop ? 'grabbing' : 'no-drop') : 'inherit', }; return ( diff --git a/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx b/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx index 8dc42d143..0cc21f58f 100644 --- a/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx +++ b/apps/client/src/features/rundown/rundown-milestone/RundownMilestone.tsx @@ -70,7 +70,6 @@ export default function RundownMilestone({ colour, cue, entryId, hasCursor, titl const dragStyle = { zIndex: isDragging ? 2 : 'inherit', - cursor: isDragging ? 'grabbing' : 'grab', transform: CSS.Translate.toString(transform), transition, }; diff --git a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/SortableCell.tsx b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/SortableCell.tsx index b3f959510..7c7226c76 100644 --- a/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/SortableCell.tsx +++ b/apps/client/src/views/cuesheet/cuesheet-table/cuesheet-table-elements/SortableCell.tsx @@ -24,7 +24,6 @@ export function SortableCell({ columnId, colSpan, injectedStyles, children, drag const dragStyle = { ...injectedStyles, zIndex: isDragging ? 2 : 'inherit', - cursor: isDragging ? 'grabbing' : 'grab', transform: CSS.Translate.toString(transform), transition, };