Skip to content

Conversation

@raimund-schluessler
Copy link
Member

@raimund-schluessler raimund-schluessler commented Feb 18, 2017

Superseded by these PRs:

@raimund-schluessler raimund-schluessler changed the title [WIP] Fix popover menu, fixes #49 [WIP] Fix popover menu, closes #49 Feb 18, 2017
@raimund-schluessler raimund-schluessler changed the title [WIP] Fix popover menu, closes #49 [WIP] Fit to styleguide, closes #49 Feb 18, 2017
@raimund-schluessler
Copy link
Member Author

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?

@raimund-schluessler raimund-schluessler changed the title [WIP] Fit to styleguide, closes #49 Fit to styleguide, closes #49 Feb 19, 2017
<ul>
<li class="app-navigation-entry-utils-counter">{{ getCollectionString(collection.id) | counterFormatter }}</li>
</ul>
<div class="app-navigation-entry-utils-counter">
Copy link
Member

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

Copy link
Member Author

@raimund-schluessler raimund-schluessler Feb 20, 2017

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?

<li confirmation="delete(calendar)" confirmation-message="deleteMessage(calendar)">
</li>
</ul>
<div class="app-navigation-entry-utils-counter">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be first. Before the app-navigation-entry-menu and the app-navigation-entry-utils-menu-button button.

And it's empty on my installation, therefore moving the menu icon to the left.
capture d ecran_2017-02-20_05-36-31

Copy link
Member Author

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.

Copy link
Member

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 :)

Copy link
Member Author

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 !?

Copy link
Member

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 :)

Copy link
Member

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 😉

@skjnldsv
Copy link
Member

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>
@skjnldsv
Copy link
Member

skjnldsv commented Feb 20, 2017

@raimund-schluessler I pushed a pr to fit the css guidelines.
The only thing to fix is the menu now. :)

  • It handles your count alignment. (Though it looks a little bit strange, but that what you asked 😉 )
  • I fixed your strange countformatter filter
  • I fixed some css to avoid too much !important flaws

@skjnldsv
Copy link
Member

Okay, I looked at the overall changes you did and found some strange stuff.
Why did you change the menu/menubutton div order? The app was fitting the css guidelines before, the popovermenu content didn't. There was no needs for that didn't it?

@raimund-schluessler
Copy link
Member Author

Thanks for fixing this stuff. I haven't checked how it looks now, but I will do so soon.

Why did you change the menu/menubutton div order? The app was fitting the css guidelines before, the popovermenu content didn't. There was no needs for that didn't it?

What exactly do you mean? Could you give a link to the line in the code?

@skjnldsv
Copy link
Member

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?

@raimund-schluessler
Copy link
Member Author

raimund-schluessler commented Feb 20, 2017

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.

  • The counter is not always visible, only when the list is active. It should always be visible.
  • The counter now shows 0 when no tasks are present, whereas it simply showed nothing before. I know, the counterFormatter in the guidelines does the same, but I think it clutters the layout with a useless display.

I will fix the first issue and would like some feedback on the second. Also @jancborchardt for the second point.

  • Also the popover menu does not open, when clicking on the three-dots-icon

@raimund-schluessler
Copy link
Member Author

raimund-schluessler commented Feb 20, 2017

Wait, you moved the popover menu again outside of the div containing the three-dots-icon. But in nextcloud/server#2798 (comment) you say

You need to put the entire menu just after the three dot icon (refs #2545 (comment))

<div><span class="icon-more"></span><div class="popover">...</div></div>
With this, we don't need js, css only is ok.

Also see nextcloud/server#2545 (comment)

For référence: the popover menu should be inside the div containing the dots icon.

What is correct now?

@skjnldsv
Copy link
Member

Okay, I understand the confusion now! :)
I wrote the guide for the popover menu only. Not for the app-navigation menu.

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...)

@raimund-schluessler
Copy link
Member Author

Ah, ok, thanks for the insight 😄

I will fix the issues then.

@skjnldsv
Copy link
Member

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 😢 )

@raimund-schluessler
Copy link
Member Author

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.

@raimund-schluessler raimund-schluessler changed the title Fit to styleguide, closes #49 [WIP] Fit to styleguide, closes #49 Feb 20, 2017
@skjnldsv skjnldsv deleted the FixPopover branch February 20, 2017 22:50
@jancborchardt
Copy link
Member

Great work on fitting the app to the styleguide! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants