-
-
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
App navigation flex #6399
App navigation flex #6399
Conversation
ee4d48e
to
0e81b5c
Compare
Codecov Report
@@ Coverage Diff @@
## master #6399 +/- ##
============================================
+ Coverage 53.06% 53.06% +<.01%
- Complexity 22552 22553 +1
============================================
Files 1414 1414
Lines 87741 87745 +4
Branches 1340 1340
============================================
+ Hits 46557 46564 +7
+ Misses 41184 41181 -3
|
I guess this will break a lot of apps again... |
@nickvergessen I will try my best to help reestablishing everything again. But would you prefer we do nothing and leave this mess around? 😞 And btw, there is a lot of feature announced on the css guidelines that don't work even before the scss switch. So it's time to have something usable again! |
No, of course progress is good. But maybe you can post in the forum in the dev section that there changes about this incoming, so people can check their apps and update them when necessary ;) |
I will check other apps myself. |
One thing that annoys me from time to time, is that the app content container is the actual scrolling part and the navigation around it is fixed. That also means, that mobile browsers don't properly detect if you scroll in there as a "page scroll" and don't hide the header of the browser. That means that it is unusable screen space. Does this PR here addresses this or does it only change stuff in the header/menu itself? |
@MorrisJobke not in this pr. But it's indeed an issue I'd like very much to investigate. Is there an opened one already? |
I don't think so :/ |
043d015
to
fabe262
Compare
For testing, here is a test app which show all of the possibilities for the app-navigation. |
@nextcloud/designers Please review! |
We should probably add a feedback on the submenus of a deletable entry. Right now we only get the confirmation on the main a content. We could set an opacity to 0.5? or something? |
@skjnldsv Looks really nice. One small issue I found while testing is that collapsed menus are only working when you click on the text. I think they should also collapse/expand when clicking the arrow symbol: |
Every entry should be clickable on the whole height/width (extending to the left edge of the viewport, and to the right to the edge of the navigation, minus the action icons of course). |
@juliushaertl It's because of my javascript! ^^ @jancborchardt there isn't any js in core to handle the app-navigation doesn't it? |
@skjnldsv not sure about the JS part but the clickable area is a pure CSS thing, no? Any idea ^ @BernhardPosselt @nextcloud/javascript? |
The clickable area is yes. I need to fix a small think indeed so the link gets above the collapse button. |
🎉 |
@@ -0,0 +1,4 @@ | |||
<?xml version="1.0" encoding="UTF-8"?> |
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.
Great work with this PR, @skjnldsv ! Just a small note - SVG should be optimized with Scour and it's missing viewbox="0 0 16 16"
tag.
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 used the scour command provided by the nextcloud optimise bash script :p
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.
Hmmm, that's strange, because it should remove the <xml>
element as well as linebreaks....
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.
scour --create-groups --enable-id-stripping --enable-comment-stripping --shorten-ids --remove-metadata apps/files/img/quota.svg > apps/files/img/quota-opt.svg
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.
Damn it!!! 😅
@@ -20,17 +20,3 @@ | |||
display: none; | |||
} | |||
|
|||
/* move Deleted Files to bottom of sidebar */ |
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.
only 3 declarations left in this file - can we move them somewhere else?
@MorrisJobke @jancborchardt Should we backport? |
As it is a feature I would say no - and for my opinion it is too much changed code for a back port |
Damn, I should have done that earlier. |
May be better - we only need to be careful about potential breakages of apps in the existing versions |
Yeah, this can absolutely not be backported unfortunately. :\ But yes, a drop-in CSS file for apps while they need to support older versions still might be best. |
Okay, I will provide a patch after I finished upgrading the other apps. When is 13 due? |
~ 1 month feature freeze |
Meep meep! 📯 |
Flex on app-navigation to finish the reorganisation of the app-navigation done on february by me.
Still some old code to clean.