rtfpessoa / diff2html

Pretty diff to html javascript library (diff2html)
https://diff2html.xyz
MIT License
2.8k stars 273 forks source link

Set display:flex to align inline-block elements #441

Closed m-masaki72 closed 1 year ago

m-masaki72 commented 2 years ago

(Sorry if the translation is unnatural as I am using DeepL to translate)

I noticed that under certain conditions, Inline-Block elements may be misaligned. I think this often happens when a large Diff is displayed SideBySide, but I am not sure of the condition.

To fix this, I set display: flex on the parent element of the Inline-Block element.

This issue is also noted in the following Issue. https://github.com/rtfpessoa/diff2html-cli/issues/138