Uh oh!
There was an error while loading. Please reload this page.
Do not show tab headers marked as hidden - #12570
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 <danxuliu@gmail.com>
skjnldsv
commented
Nov 21, 2018
Seems fair to me! |
danxuliu
commented
Nov 21, 2018
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 ). |
skjnldsv
commented
Nov 21, 2018
That's what I thought. |
danxuliu
commented
Nov 21, 2018
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. |
skjnldsv
commented
Nov 21, 2018
Let's go over #10289 |
danxuliu
commented
Nov 21, 2018
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