-
Notifications
You must be signed in to change notification settings - Fork 93
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
Properly align appnavigationtoggle #1946
Conversation
Honestly, I do not think this is a good idea. The If we start to move it around now, this will become even worse. See the Tasks app for example (sorry, it's always Tasks 🙈): So, in case you really decide to do this, it will be a breaking change at least and other apps will need to overwrite the style as it doesn't fit their layout. Here, is how it looks for Contacts (still has the old style toggle): |
@raimund-schluessler I understand your concern but I think that the spacing of the toggle relative to other elements is off. We fixed that in talk and I'm trying to bring custom changes we have there upstream. Of course this would be a breaking change. @skjnldsv thoughts? |
The problem is that other apps will have to undo the custom changes of Talk because they won't work with their layout. So instead of having one custom CSS rule in Talk, we will have multiple (one in every other app instead). |
Yes, this is indeed not acceptable. |
@raimund-schluessler I think that other apps could benefit from a standardized 8px spacing too. |
I don't say that standardization is bad, or that other apps won't benefit from having it aligned. But unless we find a proper space for the For example, in case we adapt the files app to use the vue-components as well at some point, having an 8 px top spacing will just not work with the breadcrumb bar (since it doesn't have a padding at the top). And on a side note: In my impression, the AppNavigationToggle shouldn't be aligned with any element in the content area, since it doesn't logically belong there (e.g. having it aligned with the input field in Tasks, suggests a logical relation to it, which does not exist). Having it top aligned with the AppNavigation pane is the proper solution imho, but that's just my taste. |
So my take just from the design / user perspective:
Regarding the specific app examples:
|
Altough I think more spacing above the breadcrumb bar is not really necessary, it's fine with me. But could we then maybe only use 4px top like in this screenshot? 8px would look quite weird I think. |
I don't have a problem adjusting the layout. I just understood it so that you want to have the same button position for all apps. And I am a bit skeptical that this will really work out well. Mainly because many apps don't position the AppNavigationToggle button well just as it is located now. And moving it further into the content will make this problem even worse (see e.g. Contacts or Calendar). |
@raimund-schluessler your example looks great! :) And yeah, the positioning probably doesn’t have to be exactly the same in all apps – but in no app should it stick to the very top left and be unaligned to any content, like it is now. |
Let's go with 4 then, I'll reduce talk's topbar height |
8fa89cb
to
04e8456
Compare
🤷 |
4729b40
to
74f0512
Compare
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.
Hum, shouldn't those also be available as a css var within content?
We should maybe start doing this (add them to the Content so anything within can use it for example?)
ping @skjnldsv |
What should we do here???? |
Isn’t that a good approach as you suggested? |
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.
I would like this new css variable to be documented tbh
By the way @raimund-schluessler, with the new breadcrumb component with bigger visual elements, maybe the 8px spacing also makes sense for Files now? The slightly more whitespace is definitely nice, and then it would fit for Talk, Files and probably others too. |
@skjnldsv where should we add the docs? To this file? |
Very good question :) At the very least, I would add that to the AppContent documentation |
How should we proceed here? We are heading for a new major release and it would be good to have this included, I think. |
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
dbff2f9
to
2e21c08
Compare
Added a couple of lines of docs in the docs section and in the css section where the variable is declared, let's get this in? |
Fine with me. Apps will still need to adjust the position to make it work with their layout, though. |
Co-authored-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
...Upstreaming more talk v-deeps
Before:
After:
Signed-off-by: Marco Ambrosini marcoambrosini@pm.me