Skip to content

fix: make the empty state artwork a background image - #212

Merged
yash-sangwan merged 1 commit into
mainfrom
fix/empty-state-artwork-drag
Sep 5, 2026
Merged

fix: make the empty state artwork a background image#212
yash-sangwan merged 1 commit into
mainfrom
fix/empty-state-artwork-drag

Conversation

@yash-sangwan

Copy link
Copy Markdown
Member

The "no files or folders" illustration was an <img>, so the browser let you pick it up and drag it around. Dropping files onto the middle of the empty page, which is exactly where the artwork sits, started an image drag instead of an upload.

It is a background image now, which the browser will not drag, and the empty state block ignores pointer events so the dropzone underneath gets the drag wherever you aim it. Layout is unchanged.

An <img> could be dragged by the browser, which blocked drops onto the
middle of the empty page.
@vercel

vercel Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
opndrive Ready Ready Preview Sep 3, 2026 8:59pm UTC
opndrive-docs Ready Ready Preview Sep 3, 2026 8:59pm UTC

@yash-sangwan yash-sangwan left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

LGTM

@yash-sangwan
yash-sangwan merged commit c2b9aba into main Sep 5, 2026
11 checks passed
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