Skip to content

Commit aec0de0

Browse files
feat(note-block): enable body dragging to match workflow block (#3073)
Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 51565a6 commit aec0de0

File tree

1 file changed

+2
-7
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/note-block

1 file changed

+2
-7
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/note-block/note-block.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -530,18 +530,13 @@ export const NoteBlock = memo(function NoteBlock({
530530
<div className='group relative'>
531531
<div
532532
className={cn(
533-
'relative z-[20] w-[250px] cursor-default select-none rounded-[8px] border border-[var(--border)] bg-[var(--surface-2)]'
533+
'note-drag-handle relative z-[20] w-[250px] cursor-grab select-none rounded-[8px] border border-[var(--border)] bg-[var(--surface-2)] [&:active]:cursor-grabbing'
534534
)}
535535
onClick={handleClick}
536536
>
537537
<ActionBar blockId={id} blockType={type} disabled={!userPermissions.canEdit} />
538538

539-
<div
540-
className='note-drag-handle flex cursor-grab items-center justify-between border-[var(--divider)] border-b p-[8px] [&:active]:cursor-grabbing'
541-
onMouseDown={(event) => {
542-
event.stopPropagation()
543-
}}
544-
>
539+
<div className='flex items-center justify-between border-[var(--divider)] border-b p-[8px]'>
545540
<div className='flex min-w-0 flex-1 items-center'>
546541
<span
547542
className={cn(

0 commit comments

Comments
 (0)