-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
File drop highlight #83
Conversation
@vincchan Generally I like this :) Could you also try to include a different indicator if the file is dropped into a subfolder (then only highlight the row. Beside that this rocks 🚀 Thanks! |
@MorrisJobke Good point! I just noticed though that by upgrading the jQuery Plugin it does not let you upload files into folders directly anymore. Need to have a look at that. |
@vincchan This looks great! Simple, intuitive, exactly as it ought to be. Nice work! |
I agree with @MorrisJobke it would be great to grab directly into subfolders. |
@williambargent The functionality to upload to folders directly is already present, I just broke by the updated jQuery Plugin which I now fixed. I recommend you to open up an issue for your request :) |
Nice @vincchan! You could also change the emptycontent icon to folder-drag-accept. Or when dragged into a subfolder, change that icon. |
@MorrisJobke @jancborchardt thanks for the feedback! It now detect when the user is dragging a file over a directory and changes the thumbnail to folder-drag-accept.svg |
👍 |
Very nice! Maybe something for a different pull request, but for completeness sake, can you also make sure this happens for:
|
} | ||
|
||
.dropping-to-dir .thumbnail { | ||
background-image: url(/nextcloud/core/img/filetypes/folder-drag-accept.svg)!important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hardcoded URL ;) And the file is also missing in this PR ;)
Please don’t duplicate the file »folder-drag-accept.svg« ;) Best would be to create a class in core/css/icons.css like so:
Then simply the class can be switched. |
076f71c
to
1b7f8cc
Compare
1b7f8cc
to
10f8d64
Compare
@nextcloud/designers alright PR is ready to review. Thanks for all the feedback! Here is a demo |
@jancborchardt I'll open up a PR for the empty content icons when I get around to do that :) |
I tested this and it works really nice :) Thanks for this Tested in Chrome, Firefox and Safari |
👍 |
@Mar1u5 Do you want to review this nice feature? :) |
Nice 👍 |
Awesome stuff, @vincchan!!!! 🚀 |
Hey @nextcloud/designers
I'm creating this PR to let you know that I'm working on a visual indication for the file-upload by drag&drop and wanted your opinion on the current status. I also updated the File Upload Plugin to 9.12.5 (apps/files/js/jquery.fileupload.js) to support dragleave event.
We have, like many services, the ability to drag and drop a file directly from the filesystem of the OS to the browser to upload it to Nextcloud, though we do not currently intuitively show it in the UI.
This fixes it.