Skip to content
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

Fix opening the menu in a share page #7566

Merged
merged 2 commits into from
Dec 19, 2017

Conversation

danxuliu
Copy link
Member

This pull request fixes a regression introduced in commit 2348d14. Since that commit the menu of a Shared file page (in the Files app, open the right sidebar and the Sharing tab for a file, enable Share link and open that link) is no longer opened when clicking on the top right area of the header.

.popovermenu elements are visible or not depending on whether they also have the open CSS class or not. #header .menu elements were always hidden, so when both rules applied to the same element, like in the menu of a Share page, the element was always hidden due to #header .menu being more specific than .popovermenu and thus overriding its rules. Now, #header .menu elements are hidden only if they are not a .popovermenu too.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
".popovermenu" elements are visible or not depending on whether they
also have the "open" CSS class or not. "#header .menu" elements were
always hidden, so when both rules applied to the same element, like in
the menu of a Share page, the element was always hidden due to
"#header .menu" being more specific than ".popovermenu" and thus
overriding its rules. Now, "#header .menu" elements are hidden only if
they are not a ".popovermenu" too.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@danxuliu danxuliu added 3. to review Waiting for reviews bug design Design, UI, UX, etc. regression labels Dec 19, 2017
@danxuliu danxuliu added this to the Nextcloud 13 milestone Dec 19, 2017
@codecov
Copy link

codecov bot commented Dec 19, 2017

Codecov Report

Merging #7566 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master    #7566   +/-   ##
=========================================
  Coverage     51.16%   51.16%           
  Complexity    24883    24883           
=========================================
  Files          1602     1602           
  Lines         94731    94731           
  Branches       1368     1368           
=========================================
  Hits          48472    48472           
  Misses        46259    46259
Impacted Files Coverage Δ Complexity Δ
lib/private/Files/Cache/Propagator.php 94.93% <0%> (-1.27%) 16% <0%> (ø)
lib/private/Server.php 81.34% <0%> (-0.12%) 134% <0%> (ø)
apps/files_trashbin/lib/Trashbin.php 72.53% <0%> (+0.24%) 136% <0%> (ø) ⬇️
lib/private/Security/CertificateManager.php 92.07% <0%> (+0.99%) 39% <0%> (ø) ⬇️

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested and works 👍

@MorrisJobke
Copy link
Member

@danxuliu This partly fixes #7509, but the PDF still gets replaced by a white page once the menu is opened. Is this related to this here on not?

@rullzer rullzer merged commit cfd116b into master Dec 19, 2017
@rullzer rullzer deleted the fix-opening-the-menu-in-a-share-page branch December 19, 2017 13:41
@jancborchardt
Copy link
Member

Thanks a lot @danxuliu!

@skjnldsv
Copy link
Member

Thanks @danxuliu 💘

@danxuliu
Copy link
Member Author

danxuliu commented Dec 20, 2017

@MorrisJobke

This partly fixes #7509, but the PDF still gets replaced by a white page once the menu is opened. Is this related to this here on not?

No, it has a different cause. Fix is in #7597.

@MorrisJobke MorrisJobke mentioned this pull request Jan 2, 2018
30 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug design Design, UI, UX, etc. regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants