refactor: make resizing more natural
Description
Resizing is not that natural now.
For example, when we move the top handle, the box becomes shorter from bottom.
https://github.com/user-attachments/assets/bda13586-200b-4809-a070-3ea179bf91a7
This PR combines resizing and dragging when the user is resizing from top or left to make sure the box is resizing following the cursor. Screencast:
https://github.com/user-attachments/assets/4d9c15b9-52c0-46e6-a9c7-918d5a9dd9e1
Linked Issues
Additional context
@xc2 is attempting to deploy a commit to the RSS3 Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| follow | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 7, 2024 10:07am |
/ai-review
Suggested PR Title: feat(modal): enhance resizing functionality and drag controls in stacked modals
Code Review: No change requests necessary.