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

fix: selection for text files #1842

Merged
merged 1 commit into from
Aug 31, 2021
Merged

fix: selection for text files #1842

merged 1 commit into from
Aug 31, 2021

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Aug 23, 2021

Fixes #1809 by changing the drag layer to the inside of PreviewItem (renamed Preview). Now the dragging only applies to images, videos, audio and PDFs.

With this, I also removed the part of the class className={ classNames(type !== 'pdf' && type !== 'text' && type !== 'json' && 'dib') }. It didn't seem to change anything in practical terms. /cc @rafaelramalho19 any reason why was that added?

License: MIT
Signed-off-by: Henrique Dias hacdias@gmail.com

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
@hacdias hacdias self-assigned this Aug 23, 2021
@hacdias hacdias temporarily deployed to Deploy August 23, 2021 11:40 Inactive
Copy link
Member

@lidel lidel left a comment

Choose a reason for hiding this comment

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

Thanks, works as expected.

I think I vaguely remember the removed snippet – was a quick workaround to get #1646 out of the door, with this refactor it does not seem to be needed anymore.

@lidel lidel merged commit 3f6a09a into main Aug 31, 2021
@lidel lidel deleted the fix/1809 branch August 31, 2021 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Plain text file without extension acts as an "image" and is not select-able
2 participants