Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Hide difference viewer sides when empty #1643
What this PR does
Previously when a file was added or deleted, the PR file diff view would show an empty view on the left or right side (depending on whether it was added or deleted).
This PR makes the diff view automatically hide the empty side.
This frees up a lot more space when adding or reviewing comments.
When a side it hidden in this way, the diff mode option will be ignored for this view (it's a global option and will be honored for views where there is something to diff).