Skip to content

Make the drop UI instant and window-wide#54

Merged
ankitsejwal merged 2 commits into
mainfrom
feat/window-file-drop
Jun 28, 2026
Merged

Make the drop UI instant and window-wide#54
ankitsejwal merged 2 commits into
mainfrom
feat/window-file-drop

Conversation

@ankitsejwal

Copy link
Copy Markdown
Member

Follow-up on the sidebar rework. Two tweaks to the drag experience:

  • The drop pad now shows the instant you bring a photo over the window — anywhere, not just when the cursor reaches the narrow sidebar. Detection moved to a small window-level hook (useWindowFileDrop), and a drop is accepted wherever it lands.
  • The square pad is vertically centered in the rail now instead of clinging to the top, and the strip behind it blurs as before.

Also dropped the react-dropzone dependency since the hook covers both drag and the browse button (a plain hidden file input).

@ankitsejwal ankitsejwal merged commit c412072 into main Jun 28, 2026
1 check passed
@ankitsejwal ankitsejwal deleted the feat/window-file-drop branch June 28, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant