-
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
Open and close AppNavigation #791
Comments
To analyze it before we get ahead of ourselves – there’s basically 2 categories of apps:
So then thinking about the special cases:
So a crucial point is that we need to make sure that only apps for which it makes sense hide the AppNavigation by default. And that the state if it’s open or closed is remembered per app, per user. Icon-wise, it should stay the list/hamburger icon as it is right now as this is a de-facto standard right now, no need to make this more complex. |
Totally agree on this, but we'd need some back-end support for it, right? BTW we could apply this reasoning to the right sidebar as well, in talk we currently allow the user to choose to always hide it for example, but if the user closes the browser tab or reloads the page, the user setting is lost and the behavior reverts to default (opened if enough width, closed otherwise). |
You can just store settings in the userconfig table (per app, per user) similar to how we save settings in Tasks: https://github.com/nextcloud/tasks/blob/master/lib/Service/SettingsService.php#L62 |
Yes, the sidebar state should also be remembered. :) |
I remember looking at this with you @jancborchardt when checking how Apple was doing it, and they hide it by default on small windows, which is why we increased the breakpoint to 1024. But when enough available space they still show the Navigation by default, though you can still close it and the state is remembered. Wouldn't that be better? Loading with enough space should not hide the Navigation by default. This goes also in the same direction as your idea to show the Sidebar by default if enough space nextcloud/server#7138 E.G. if I have a 4k monitor and I open the app, not showing the Navigation would not make much sense and would reduce discoverability I think :) So I would be all in to just remember the state, (per app? I would rather not let each dev the task of implementing this?) and allow the closing of the navigation even on desktop view like #989 permit 😉 EDIT: this is what macos do (catalina): |
Yep, absolutely still agree @skjnldsv – if there is enough space, we should show it by default. It could still be hidden and the state should ideally be remembered per-app. |
Let's go for this! |
The AppNavigation sidebar can be close since a while already. |
Currently, the AppNavigation is always visible by default and can't be hidden. There is one exception: in mobile mode, AppNavigation is hidden by default and can be opened by clicking on the AppNavigationToggle (hamburger icon).
For the notes app, some people (@ma12-co and @jancborchardt) proposed to close the AppNavigation by default even on non-mobile mode, see the discussion around nextcloud/notes#413 (comment) and nextcloud/notes#364 (comment) . This allows us to use the AppNavigation in a better way.
In order to realize this, we need to do two the following things:
What do you think about this approach?
/cc @jancborchardt @ma12-co @nextcloud/designers
The text was updated successfully, but these errors were encountered: