-
Notifications
You must be signed in to change notification settings - Fork 88
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
Improve the breadcrumbs component #2410
Comments
Looks good. One tiny detail: I would loose the last chevron icon to the right since the new button is sort of in the same context of the current folder |
I can take care of this. I am just happy you don't want any drastic functional changes (yet), since this component is quite complex 😄. So I have a couple of questions:
|
Will be in 24. So I'm fine using a slot if needed. But we need to make sure we have this soon so we don't break it mid-schedule :) |
If you only use the icon slot and not the icon prop (as anyway required for MD icons), there won't be any problem if we remove the icon prop. Anyway, I will have a look soon. |
I just saw we also need to show an MD icon by default for the hidden breadcrumbs in the dropdown at I will also check if it might also be possible to kind of forward the breadcrumb icon slot to the ActionButton icon slot, in case the breadcrumb is hidden. |
The first step is in #2411. |
Todo:
|
Yes, since we're moving towards standardising MDI this would be a good idea
Haha, yes! Looks great in #2411!
Yeah, so ideally we were thinking of having an action menu there next to the current folder instead of a share icon, so on clicking it the action menu for the folder would appear. I'd say we can go with |
This can be done already. If you supply e.g. multiple |
Reopening, since we are not done yet 🙂 |
I agree that it looks better for the single (hovered) breadcrumb. The crumbs are 44 px high, which means we need 22 px left/right padding to achieve what you propose (border radius ends at the position of the text). The problem is that if we do that and you don't hover over a breadcrumb, there is to much white space. And we can show less breadcrumbs, obviously. The background and problem are only visible on hover. So I would say it is better to have a nice looking and better functional breadcrumb bar when you don't hover any crumb (which is the default state) than account for an issue that only happens rarely (on hover). |
Yes, I realized the problem while doing it in devtools. But I think the problem is viewed from the wrong angle here. If the necessary horizontal margins are too large, then it's because the button is too high. Even if the "bug" is only visible when you pass over it, it remains an unpleasant visual bug for the end user. I don't think prioritizing maximum size goes over a nice interface (just as a nice interface doesn't go over functionality, the two should be judged equally). |
And for info Google Drive uses a 32px height breadcrumbs, so I don't think a button that high is necessary in this context. |
Yeah, I am afraid Nextcloud is not totally adhering to these rules everywhere yet. That's also why we now e.g. have a button component in nextcloud/vue so it looks the same everywhere (once it's used everywhere 🙈). But this discussion is more for @jancborchardt and @nimishavijay, since they do the Nextcloud design 😉 |
Another option would be to use the I think this could even make sense, since it creates a relation to the But I think this is enough input for @nextcloud/designers now. Your call. 🙂 |
@raimund-schluessler I think that works! |
As discussed with @jancborchardt and @marcoambrosini during the Vue components design review
chevron-right
MDI icon#ededed
(--color-background-dark
?) and text is--color-main-text
home
MDI icon herealso cc @skjnldsv for Files
The text was updated successfully, but these errors were encountered: