fix: fine-tune drag handle vertical position by 2px

- Move handle up by 2px for better visual alignment with text
- Compensates for smaller handle size centering

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Justin Edmund 2025-06-26 10:25:31 -04:00
parent 8f884af5d7
commit 1e4a27b1a3

View file

@ -341,7 +341,7 @@ export function DragHandlePlugin(options: GlobalDragHandleOptions & { pluginKey:
// Add 12px gap between drag handle and content
// Position the handle inside the padding area, close to the text
dragHandleElement.style.left = `${rect.left + paddingLeft - rect.width - 12}px`
dragHandleElement.style.top = `${rect.top}px`
dragHandleElement.style.top = `${rect.top - 2}px`
showDragHandle()
},
keydown: () => {