Skip to content

Commit

Permalink
Fix cursor over comment threads (#4720)
Browse files Browse the repository at this point in the history
* use auto cursor on comment threads

* format
  • Loading branch information
ruggi authored Jan 11, 2024
1 parent 9702956 commit 5aea0e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion editor/src/components/canvas/controls/comment-indicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,14 @@ const CommentIndicator = React.memo(({ thread }: CommentIndicatorProps) => {
const draggingCallback = React.useCallback((isDragging: boolean) => setDragging(isDragging), [])

return (
<div onMouseOver={onMouseOver} onMouseOut={onMouseOut} data-testid='comment-indicator'>
<div
onMouseOver={onMouseOver}
onMouseOut={onMouseOut}
data-testid='comment-indicator'
style={{
cursor: 'auto',
}}
>
{when(
(isActive || !hovered) && !dragging,
<CommentIndicatorUI
Expand Down
1 change: 1 addition & 0 deletions editor/src/components/canvas/controls/comment-popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ const CommentThread = React.memo(({ comment }: CommentThreadProps) => {
borderRadius: 4,
overflow: 'hidden',
zoom: 1 / canvasScale,
cursor: 'auto',
}}
onKeyDown={stopPropagation}
onKeyUp={stopPropagation}
Expand Down

0 comments on commit 5aea0e9

Please sign in to comment.