-
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
[WIP] feat(NcAppNavigation): add top-bar slot to save space for toggle button #4639
Conversation
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.
This looks like a good idea in general, however I guess this will not fix our problem in the files app as it will look weird. See
WDYT @nextcloud-libraries/designers
So maybe the toggle should be positioned by default on the right and not on the left of the first item? Also the sidebar should probably go full screen on mobile then?
This issue has come up many times before too. @ShGKme's proposal is great because the position of your cursor doesn't have to move to open and close the navigation. We could think of standardizing the structure for the navigation such that there is always either search or a button as the first item. This already exists in Mail, Calendar, Contacts and Talk. We would have to change it for Files and Photos. This kind of layout is also consistent with competitors like Gdrive and OneDrive. What do you think? |
It seems that they don't have sidebar toggle button at all... |
Yes, the navigation is always showing, I meant that the "New item" button is always at the top of the navigation :) |
We had this discussion at length with many proposals before and there doesn't seem to be a really good option. Ref previous threads:
The current one makes sense placement-wise, and it is also the placement we use for the right sidebar. While this one here has the benefit of the mouse not needing to move when you toggle it, this seems only beneficial when you toggle the nav on and off immediately (not a very common case?), and sacrificing a more logical placement for it.
Where is the toggle when the navigation is closed?
If we would go for something we should force it as a standard, otherwise the experience will be off.
It seems we are mainly trading "saving space in every apps content" with "saving space in every apps navigation". ;) All in all, considering all the solutions we already discussed in the past and the difficulty to align this, I am very hesitant to have us make any change here. The current way works quite well by now, is established, and the placement itself makes sense. |
At the risk of being annoying, but I still have another opinion about that. The position is annoying (I think I mentioned it one or two times before 😉), because it overlaps the app-content region and every app developer has to fiddle around this position and find a solution for himself. This forces apps a whole column or a (sticky) header row, to avoid conflicts with the app's content, especially when it comes to scrolling. This leads to an inconsitent appearence of all apps using the navigation bar, depending of the solution the app developer choosed. Some old impressions are found here From an app devolpers view I would prefer the toggle as integrated component of the navigation bar. This means it is outside the app container does not interfer with the app. From a user's view I would prefer a consitent presentation of central actions. The Navigation bar is the same in every app, which uses it. So should the toggle be also. Therfore I would like to throw my prior proposal back into the discussion. |
Working on an alternative solution to only fix issues with a small and middle screen without any fundamental changes |
Closed in flavor of #4767 |
☑️ Resolves
The toggle button outside the navigation doesn't always look good. The problem is that having this button inside the navigation may not fit any layout and requires saving space for it on every app's side.
The idea is to have an additional
top-bar
slot to allow some content in a special place at the top of navigation that reserves space for the toggle button.This slot can be optional, keeping the current behavior as a default behavior to not make a breaking change here.
Usage example:
🖼️ Screenshots
PS: Talk could be not the best example because of many items in the top already.
🚧 Tasks
Alternative solution
Instead of providing a slot to render top bar in a specific position with a toggle in a specific position, we can also provide a possibility to just render
NcAppNavigaroinToggle
button wherever application wants directly. Aka🏁 Checklist