feat(note-block): enable body dragging to match workflow block (#3073)

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
Emir Karabeg
2026-01-30 12:51:40 -08:00
committed by GitHub
parent 51565a6e28
commit aec0de046b

View File

@@ -530,18 +530,13 @@ export const NoteBlock = memo(function NoteBlock({
<div className='group relative'>
<div
className={cn(
'relative z-[20] w-[250px] cursor-default select-none rounded-[8px] border border-[var(--border)] bg-[var(--surface-2)]'
'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'
)}
onClick={handleClick}
>
<ActionBar blockId={id} blockType={type} disabled={!userPermissions.canEdit} />
<div
className='note-drag-handle flex cursor-grab items-center justify-between border-[var(--divider)] border-b p-[8px] [&:active]:cursor-grabbing'
onMouseDown={(event) => {
event.stopPropagation()
}}
>
<div className='flex items-center justify-between border-[var(--divider)] border-b p-[8px]'>
<div className='flex min-w-0 flex-1 items-center'>
<span
className={cn(