Adds draggable interaction to dependency graph nodes (FN-3089), introducing a `useNodeDrag` hook to manage drag state and positioning, with corresponding tests and a new drag stylesheet; the `GraphTaskNode` and `DependencyGraph` components are updated to wire up the drag behavior. Fusion-Task-Id: FN-3089
16 lines
311 B
CSS
16 lines
311 B
CSS
.graph-node--draggable {
|
|
cursor: grab;
|
|
touch-action: none;
|
|
}
|
|
|
|
.graph-node--dragging {
|
|
z-index: 3;
|
|
cursor: grabbing;
|
|
box-shadow: var(--shadow-lg);
|
|
transform: scale(1.02);
|
|
transition:
|
|
transform var(--transition-fast),
|
|
box-shadow var(--transition-fast),
|
|
z-index var(--transition-fast);
|
|
}
|