-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Do not show tab headers marked as hidden #12570
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
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]>
|
Seems fair to me! |
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.
No, versions are not supported in folders (or so it seems :-P ). |
|
That's what I thought. |
I am curious :-) What would you suggest instead? |
|
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. |
Let's go over #10289 |
Oh, it was just simple curiosity, I did not intend to discuss anything :-) But yes, I should have asked @skjnldsv by other channels, sorry :-) |
This pull request fixes a regression introduced in #12180
Tab headers that should not be shown are marked with the
hiddenCSS class. The CSS rules setdisplay: nonefor.hiddenelements, but as the rules for.tabHeaders .tabHeaderare more specific than rules for.hiddenthedisplayproperty is overriden and ends beingflex. Therefore, it is necessary to explicitly set a rule for.tabHeaders .tabHeader.hiddenelements.Before:

After:

@nextcloud/designers