-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Show the child folders in the breadcrumb menu when on a parent entry. #30925
Show the child folders in the breadcrumb menu when on a parent entry. #30925
Conversation
Sounds great! Would it be possible to post screenshots of the before/after to make it easier to see the design changes? :) |
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.
🚀
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.
There is a new breadcrumbs component, this would just be integrated with that, correct? |
No, the new breadcrumbs component is in vue, and this touches legacy code :(. |
17153aa
to
66a073a
Compare
Need a rebase on master to make the
|
a83250b
to
0942aed
Compare
Previously, clicking on an menu item in the breadcrumb menu removed the parent entries of the path, i.e.: Clicking on the "to" entry in "/path/to/some/folder" changed the breadcrumb menu to show only the "/path/to" entries. With this change the breadcrumb menu changes this behaviour as the full path is still visible (and usable) but with the "to" entry beeing highlighted. Signed-off-by: Christian Paier <hallo+git@cpaier.com>
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.
tested and works 👍
(but didn't review the code)
Rebasing did not help with sqlite-php7.4-samba-non-native (No code coverage driver is available) |
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
Thanks for the PR @paierlep ! |
No, the nextcloud/vue breadcrumb component does not support this. If this is really desired, we would need to modify it. But I have to admit, I find the behavior confusing. It takes more attention to figure out, which folder is currently open. And while this is a personal feeling that might change when getting used to it, there is also an objective usability problem with this solution. See this screenshot. Which folder is currently open? The currently open folder is hidden, because the breadcrumb bar is to long. So it is not possible to see which folder is open. And even clicking the three-dots menu does not give a hint, because the currently open folder ("Even more folders" in this case) is not bold. The second point can be fixed by making the folder that is open bold in the three-dots menu. For the first issue, I don't see a solution using this approach, to be honest. |
Thank you for reviewing @artonge, @szaimen, @nimishavijay! @raimund-schluessler nautilus seems to omit the first folders of the path, for a nested set of folders from a to z the outcome on the folder "u" only shows the folders "f" to "u": Therefore getting to the root folder is only possible by clicking on the "f" folder first.
With the ... being one of those placeholders with dropdown menu from the screenshot. Best solution would be of course if there is a lot more space to expand this to, i.e.:
|
So @nimishavijay and I checked back on how it’s done elsewhere. Since I initially opened the issue #1079 because Nautilus did it, checking with it now, they don’t do it anymore. Neither does e.g. Google Drive or Dropbox. Hence considering all the issues and possible confusion this brings, it’s probably best to not do this after all – @paierlep sorry about that, we should have kept the issue up to date. :\ @raimund-schluessler what do you think? |
(deleting my previous comment, as I've been stupid and did my comparison wrong ;) ) @jancborchardt Don't worry - I should have mentioned it earlier that I'm working on it ;) |
So should thid be reverted? |
Previously, clicking on an menu item in the breadcrumb menu removed the
child entries of the path, i.e.:
Clicking on the "to" entry in "/path/to/some/folder" changed the
breadcrumb menu to show only the "/path/to" entries.
With this change the breadcrumb menu changes this behaviour as the full
path is still visible (and usable) but with the "to" entry beeing
highlighted.
Closes #1079
cc @nextcloud/designers @nextcloud/javascript @jancborchardt @szaimen
Signed-off-by: Christian Paier hallo+git@cpaier.com