Skip to content

Conversation

@jacekkopecky
Copy link

Fixes a regression: toggling Viewed no longer hides the patch for the file.

Steps to reproduce:

  1. *** show a diff (e.g. at https://jsbin.com/salayecelu/edit?html,output )
  2. *** click "Viewed"
  3. *** observe that the file is still shown

Expected Results:

The file should hide when "Viewed" is toggled on.

I believe the problem was introduced in b164b51

Since .d2h-d-none is the first rule in the file, other rules with the same specificity override it, e.g. line 102 in .d2h-files-diff. This means hiding no longer works. This commit fixes that; alternatively, the .d2h-d-none rule should be moved to the end of the file if you don't like !important.

Since `.d2h-d-none` is the first rule in the file, other rules with the same specificity override it, e.g. line 102 in `.d2h-files-diff`. This means hiding no longer works. This commit fixes that; alternatively, the `.d2h-d-none` rule should be moved to the end of the file if you don't like `!important`.
@jacekkopecky
Copy link
Author

Hi, I see CI is failing but I don't think it's something I could fix - this PR only changed one line of CSS, after all. Any comments?

@rtfpessoa
Copy link
Owner

rtfpessoa commented Sep 2, 2022

Fixed in #447

Thank you for the explanation.
Makes more sense to me now.

@rtfpessoa rtfpessoa closed this Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants