Skip to content

Conversation

@phaseOne
Copy link
Contributor

Fixes a regression introduced in b164b51 where toggling the Viewed checkbox ceased hiding the file diff. Improves upon #445's implementation by increasing the specificity of the .d2h-d-none selector rather than using !important.

Steps to reproduce

  1. Show a diff (see this live demo).
  2. Click "Viewed".
  3. Observe that the file is still shown.

Note: this regression is not present in the diff2html demo as it's probably using an older version of the library.

Expected Results

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

phaseOne and others added 2 commits August 25, 2022 12:09
Increase specificity of .d2h-d-none selector
@rtfpessoa
Copy link
Owner

Weird I cannot replicate the issue in the demo.
The demo uses the same version that is published.

@rtfpessoa
Copy link
Owner

The change seems, fine just weird why it would matter.

@phaseOne
Copy link
Contributor Author

phaseOne commented Sep 2, 2022

details of patch

The demo (at least on my machine), doesn't appear to be on the latest version, as the CSS rule for .d2h-files-diff lacks a display: flex line:

diff2html.xyz demo CSS

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