wickedest / Mergely

Merge and diff documents online
http://www.mergely.com
Other
1.18k stars 228 forks source link

Selectors problem for line styling in current #147

Closed ControlBoy38 closed 3 years ago

ControlBoy38 commented 3 years ago

var lhsLineNumbers = jQuery('#mergely-lhs ~ .CodeMirror .CodeMirror-code .CodeMirror-linenumber.CodeMirror-gutter-elt'); var rhsLineNumbers = jQuery('#mergely-rhs ~ .CodeMirror .CodeMirror-code .CodeMirror-linenumber.CodeMirror-gutter-elt');

If the id of the div is not "mergely" like div id="mergely" but div id="compare", the style (dark grey and font white) doesn't work.

wickedest commented 3 years ago

@ControlBoy38, ah, nice catch. I think you are referring to the currently selected change (moved with Next Change / Previous Change). In the picture below, the top one is with "#compare", the bottom one is with "#mergely". Thanks for reporting this issue.

image