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

Do not show tab headers marked as hidden #12570

Merged
merged 1 commit into from
Nov 21, 2018

Conversation

danxuliu
Copy link
Member

This pull request fixes a regression introduced in #12180

Tab headers that should not be shown are marked with the hidden CSS class. The CSS rules set display: none for .hidden elements, but as the rules for .tabHeaders .tabHeader are more specific than rules for .hidden the display property is overriden and ends being flex. Therefore, it is necessary to explicitly set a rule for .tabHeaders .tabHeader.hidden elements.

Before:
sidebar-hidden-tab-before

After:
sidebar-hidden-tab-after

@nextcloud/designers

Tab headers that should not be shown are marked with the "hidden" CSS
class. The CSS rules set "display: none" for ".hidden" elements, but as
the rules for ".tabHeaders .tabHeader" are more specific than rules for
".hidden" the "display" property is overriden and ends being "flex".
Therefore, it is necessary to explicitly set a rule for ".tabHeaders
.tabHeader.hidden" elements.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@danxuliu danxuliu added bug design Design, UI, UX, etc. 3. to review Waiting for reviews regression labels Nov 21, 2018
@danxuliu danxuliu added this to the Nextcloud 15 milestone Nov 21, 2018
@skjnldsv
Copy link
Member

Seems fair to me!
Question: how do you end up with a hidden tab? Why would the tab be disabled? like version for a folder is not possible for example? (simple example, I have actually no idea 🤔 ) 😄

@danxuliu
Copy link
Member Author

Question: how do you end up with a hidden tab? Why would the tab be disabled?

When the Files app is initialized all the sidebar plugins are registered and then, every time a file is selected, the plugins are shown or hidden depending on the current file.

like version for a folder is not possible for example? (simple example, I have actually no idea thinking )

No, versions are not supported in folders (or so it seems :-P ).

@skjnldsv
Copy link
Member

That's what I thought.
What a terrible behavior :(

@danxuliu
Copy link
Member Author

What a terrible behavior :(

I am curious :-) What would you suggest instead?

@jancborchardt
Copy link
Member

jancborchardt commented Nov 21, 2018

Let’s open a separate issue about this discussion? :) This fixes a regression bug, and the discussion is opening a whole new topic of implementation.

@skjnldsv
Copy link
Member

What a terrible behavior :(

I am curious :-) What would you suggest instead?

Let's go over #10289

@danxuliu
Copy link
Member Author

Let’s open a separate issue about this discussion? :) This fixes a bug, and the discussion is opening a whole new topic of implementation.

Oh, it was just simple curiosity, I did not intend to discuss anything :-) But yes, I should have asked @skjnldsv by other channels, sorry :-)

@rullzer rullzer added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Nov 21, 2018
@rullzer rullzer merged commit 8c9e78d into master Nov 21, 2018
@rullzer rullzer deleted the do-not-show-tab-headers-marked-as-hidden branch November 21, 2018 21:34
@MorrisJobke MorrisJobke mentioned this pull request Nov 22, 2018
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug design Design, UI, UX, etc. regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants