-
Notifications
You must be signed in to change notification settings - Fork 107
[WIP] Fit to styleguide, closes #49 #51
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
Conversation
|
I fixed all issues I found and tried to fit the guidelines as far as possible. The only thing left is the positioning of the popover menu under the three-dots-icon which is slightly off. @skjnldsv Could you maybe have a look at this? I thought the popover menu would be positioned automatically when it is located within the div containing the three-dots-icon? |
templates/main.php
Outdated
| <ul> | ||
| <li class="app-navigation-entry-utils-counter">{{ getCollectionString(collection.id) | counterFormatter }}</li> | ||
| </ul> | ||
| <div class="app-navigation-entry-utils-counter"> |
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.
You need the <div class="app-navigation-entry-utils"> to fit the css guidelines.
https://docs.nextcloud.com/server/11/developer_manual/app/css.html#menus
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.
Ah, alright, thanks for the link to the manual. Would it be allowed to have the counter on the second position so it doesn't get shifted when the three-dots-icon is visible?
templates/main.php
Outdated
| <li confirmation="delete(calendar)" confirmation-message="deleteMessage(calendar)"> | ||
| </li> | ||
| </ul> | ||
| <div class="app-navigation-entry-utils-counter"> |
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.
Yeah, I notived that too. I will align the thee-dots-icon to the right in case no counter is visible.
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.
No need to do that, it should align itself if at the right place :)
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.
Yes, but see my comment above. I would like to switch the places of counter and three-dots-icon, but I guess this is against the guidelines !?
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.
Sorry, I thought you said that you will align it, not that you wanted to :)
Well, I don't think this is against the guidelines, but if you hide the counter properly, the menu should align automatically on the right :)
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 will take a look asap 😉
|
Nice work! Still a shame that you need to add your own css to the popover menu for the countdown to work. But the countdown works fine now. 😃 |
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
|
@raimund-schluessler I pushed a pr to fit the css guidelines.
|
|
Okay, I looked at the overall changes you did and found some strange stuff. |
|
Thanks for fixing this stuff. I haven't checked how it looks now, but I will do so soon.
What exactly do you mean? Could you give a link to the line in the code? |
|
Well, if you look at my pr and the overall changes, I pretty much rolled back to the original code (without knowing it). That means the structure of the app-navigation was good on the first place. So why did you changed it? The only stuff that was necessary to change was the popover menu with the countdown, why editing the rest? |
|
Yeah, you are right. I guess I screwed that up in an attempt to fix the positioning of the three-dots-icon without realising. Thanks for reverting that. But there are some new issues now.
I will fix the first issue and would like some feedback on the second. Also @jancborchardt for the second point.
|
|
Wait, you moved the popover menu again outside of the div containing the three-dots-icon. But in nextcloud/server#2798 (comment) you say
Also see nextcloud/server#2545 (comment)
What is correct now? |
|
Okay, I understand the confusion now! :) The css guidelines on the dev manual still apply there. The only stuff that changed which is the same for the two menus is the internal structure of elements. (span, divs...) |
|
Ah, ok, thanks for the insight 😄 I will fix the issues then. |
|
We should probably revert all of this pr and only fir the countdown ^^' Sorry about the confusion, the dev manual not beiing updated is pretty annoying (don't have time for that yet 😢 ) |
|
Well, the countdown is not the only thing that had to be changed. There actually were several issues including opacity, the sortorder dropdown and the input field. But starting a new PR and applying these fixes there might be an option. |
|
Great work on fitting the app to the styleguide! :) |

Superseded by these PRs: