Closed brandondong closed 1 year ago
Inserted/deleted text sinks slightly below matching text. Notice in this screenshot of the demo page how the parenthesis don't line up exactly:
If https://github.com/rtfpessoa/diff2html/blob/2c7e03d2660c0597eb15cc9db9ef652f57a1e224/src/ui/css/diff2html.css#L159 (and ins) is changed to vertical-align: baseline; or just removed, then this should work as expected. Not exactly sure why the middle alignment was added in the first place. I can see it was added in https://github.com/rtfpessoa/diff2html/pull/348.
vertical-align: baseline;
Step 0: Describe your environment
Step 1: Describe the problem:
Inserted/deleted text sinks slightly below matching text. Notice in this screenshot of the demo page how the parenthesis don't line up exactly:![image](https://user-images.githubusercontent.com/13722457/230003455-d80ff6ae-5284-46a0-83e9-0568245483a4.png)
Steps to reproduce:
Expected Results:
Relevant Code:
If https://github.com/rtfpessoa/diff2html/blob/2c7e03d2660c0597eb15cc9db9ef652f57a1e224/src/ui/css/diff2html.css#L159 (and ins) is changed to
vertical-align: baseline;
or just removed, then this should work as expected. Not exactly sure why the middle alignment was added in the first place. I can see it was added in https://github.com/rtfpessoa/diff2html/pull/348.