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

template: Conditionally hide diffs with many lines #192

Closed
wants to merge 2 commits into from
Closed

template: Conditionally hide diffs with many lines #192

wants to merge 2 commits into from

Conversation

lynques
Copy link

@lynques lynques commented Feb 4, 2019

  • Added collapse/expand functionality to files
  • Added maxLinesShowing to configuration object. Will collapse the view for any files that exceed that number in lines changed. By default no files will collapse.

This PR is related to this issue in the diff2html-cli repo rtfpessoa/diff2html-cli#36, and will have a corresponding PR in that project shortly to add the command line flag for cli usage.

Added maxLinesShowing to configuration, which can be used to collapse
files that exceed that number of changed lines. Also adds collapse/expand
feature to files in all cases
Copy link
Owner

@rtfpessoa rtfpessoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a quick look and this feature looks nice.
Thanks for your contribution.
The only thing that seems weird is the fact that we are dealing with the decision during the parse.
Can we keep the parser unchanged and just perform the size check during the UI generation?

@rtfpessoa
Copy link
Owner

@lynques any plans to review this?

@rtfpessoa
Copy link
Owner

Closing for inactivity. Let me know if you want to look at this in the future.

@rtfpessoa rtfpessoa closed this May 23, 2019
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