j-palindrome / obsidian-time-ruler

A drag-and-drop time ruler combining the best of a task list and a calendar view (integrates with Tasks, Full Calendar, and Dataview).
MIT License
214 stars 7 forks source link

Improve task drag and drop feature #90

Closed higalpe closed 8 months ago

higalpe commented 9 months ago

(I do not know if this is a bug or a feature request actually)

Describe the bug If a task has long name, it is complicated to drag and drop it to another day.

To Reproduce Create a task, for example: - [ ] This is a task with a long description. It is complicated to drag and drop it. [scheduled:: 2023-12-12 ]

So far, you only can drag and drop when you are able to get this grabbing hand cursor: imagen

But most of the time, the cursor will look like this and it means that the drag and drop option is not possible from that location: imagen

Expected behavior To be able to drag and drop the task, no matter where the cursor is when you click on the task name.

Screenshots If applicable, add screenshots to help explain your problem.

Obsidian Version:

Thank you.

j-palindrome commented 9 months ago

There's a minimum width of 24px after the title which you should use to drag the task. Not ideal, I'll try to improve how that works. Added to changelog

j-palindrome commented 8 months ago

Update: Tasks will have a special handle at the right for easier dragging & dropping