From ec401cc29e0aff0ac50d7ffcc45e2aace8807568 Mon Sep 17 00:00:00 2001
From: Federico Ruggi <1081051+ruggi@users.noreply.github.com>
Date: Wed, 10 Jan 2024 18:28:22 +0100
Subject: [PATCH 1/2] use auto cursor on comment threads
---
.../src/components/canvas/controls/comment-indicator.tsx | 7 ++++++-
editor/src/components/canvas/controls/comment-popup.tsx | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/editor/src/components/canvas/controls/comment-indicator.tsx b/editor/src/components/canvas/controls/comment-indicator.tsx
index 1092c13b770b..d0cd82ac534d 100644
--- a/editor/src/components/canvas/controls/comment-indicator.tsx
+++ b/editor/src/components/canvas/controls/comment-indicator.tsx
@@ -315,7 +315,12 @@ const CommentIndicator = React.memo(({ thread }: CommentIndicatorProps) => {
const draggingCallback = React.useCallback((isDragging: boolean) => setDragging(isDragging), [])
return (
-
+
{when(
(isActive || !hovered) && !dragging,
{
borderRadius: 4,
overflow: 'hidden',
zoom: 1 / canvasScale,
+ cursor: 'auto',
}}
onKeyDown={stopPropagation}
onKeyUp={stopPropagation}
From e66af347a94722b5ee1668d3716783bab12cf66a Mon Sep 17 00:00:00 2001
From: Federico Ruggi <1081051+ruggi@users.noreply.github.com>
Date: Wed, 10 Jan 2024 18:32:28 +0100
Subject: [PATCH 2/2] format
---
editor/src/components/canvas/controls/comment-indicator.tsx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/editor/src/components/canvas/controls/comment-indicator.tsx b/editor/src/components/canvas/controls/comment-indicator.tsx
index d0cd82ac534d..174503b0f784 100644
--- a/editor/src/components/canvas/controls/comment-indicator.tsx
+++ b/editor/src/components/canvas/controls/comment-indicator.tsx
@@ -319,7 +319,9 @@ const CommentIndicator = React.memo(({ thread }: CommentIndicatorProps) => {
onMouseOver={onMouseOver}
onMouseOut={onMouseOut}
data-testid='comment-indicator'
- style={{ cursor: 'auto' }}
+ style={{
+ cursor: 'auto',
+ }}
>
{when(
(isActive || !hovered) && !dragging,