Skip to content

Fix opening the menu in a share page - #7566

Merged
rullzer merged 2 commits into
masterfrom
fix-opening-the-menu-in-a-share-page
Dec 19, 2017
Merged

Fix opening the menu in a share page#7566
rullzer merged 2 commits into
masterfrom
fix-opening-the-menu-in-a-share-page

Conversation

@danxuliu

Copy link
Copy Markdown
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>
@danxuliudanxuliu added 3. to review Waiting for reviews bug design Design, UI, UX, etc. regression labels Dec 19, 2017
@danxuliudanxuliu added this to the Nextcloud 13 milestone Dec 19, 2017
@codecov

codecovBot commented Dec 19, 2017

Copy link
Copy Markdown

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 FilesCoverage ΔComplexity Δ
lib/private/Files/Cache/Propagator.php94.93% <0%> (-1.27%)16% <0%> (ø)
lib/private/Server.php81.34% <0%> (-0.12%)134% <0%> (ø)
apps/files_trashbin/lib/Trashbin.php72.53% <0%> (+0.24%)136% <0%> (ø)⬇️
lib/private/Security/CertificateManager.php92.07% <0%> (+0.99%)39% <0%> (ø)⬇️

@MorrisJobkeMorrisJobke left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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 masterDec 19, 2017
@rullzer
rullzer deleted the fix-opening-the-menu-in-a-share-page branch December 19, 2017 13:41
@jancborchardt

Copy link
Copy Markdown
Member

Thanks a lot @danxuliu!

@skjnldsv

Copy link
Copy Markdown
Member

Thanks @danxuliu 💘

@danxuliu

danxuliu commented Dec 20, 2017

Copy link
Copy Markdown
MemberAuthor

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

@MorrisJobkeMorrisJobke mentioned this pull request Jan 2, 2018
30 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsbugdesignDesign, UI, UX, etc.regression

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@danxuliu@MorrisJobke@jancborchardt@skjnldsv@rullzer