From 1d9b0c727050bc8f6edab8fc2b67f0fd9c66f323 Mon Sep 17 00:00:00 2001 From: hadijahkyampeire Date: Sun, 30 Jul 2023 02:43:53 +0300 Subject: [PATCH] - some tweaks --- .../draggable-question.component.tsx | 19 +++++++++--------- .../draggable-question.scss | 20 +++++++++++++++++-- .../droppable-container.component.tsx | 2 +- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/src/components/interactive-builder/draggable-question.component.tsx b/src/components/interactive-builder/draggable-question.component.tsx index 446be3a..9cf22f8 100644 --- a/src/components/interactive-builder/draggable-question.component.tsx +++ b/src/components/interactive-builder/draggable-question.component.tsx @@ -42,22 +42,23 @@ export const DraggableQuestion: React.FC = ({ }); const style = { transform: CSS.Translate.toString(transform), - cursor: isDragging ? "grabbing" : "grab", }; + const dragStyles = isDragging ? styles.isDragged : styles.normal; return (
-
- +
+
+ +

{question.label}

-