Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In navigation drawer, cursor should not be drag on hover and some enhancements #8975

Merged
merged 4 commits into from
Dec 13, 2024

Conversation

ehconitin
Copy link
Contributor

@ehconitin ehconitin commented Dec 9, 2024

as per the title- on hover, the draggable items had a grab cursor. Couldn't change it to a pointer, because then onClick would have a weird behavior of grab which causes lag onClick.

@ehconitin ehconitin requested a review from Bonapara December 9, 2024 15:06
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Summary

This PR enhances the drag-and-drop user experience in the navigation drawer by hiding breadcrumbs during drag operations and improving cursor feedback.

  • Added isDragging state management in CurrentWorkspaceMemberFavorites and CurrentWorkspaceMemberFavoritesFolders to track active drag operations
  • Modified NavigationDrawerItemBreadcrumb to hide breadcrumbs when isDragging is true via CSS visibility
  • Added onDragStart prop to DraggableList component to support drag state management
  • Simplified cursor behavior to show 'grabbing' only during active drag operations
  • Renamed isDraggable prop to isDragging across components for better semantic clarity

6 file(s) reviewed, 2 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

@martmull martmull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thank you

@martmull martmull merged commit 257834e into twentyhq:main Dec 13, 2024
17 checks passed
Copy link

Thanks @ehconitin for your contribution!
This marks your 68th PR on the repo. You're top 1% of all our contributors 🎉
See contributor page - Share on LinkedIn - Share on Twitter

Contributions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants