1
0
mirror of synced 2025-11-06 04:30:40 +08:00

patch(#147): fixes selected change style issue (#148)

Co-authored-by: Jamie Peabody <jpeabody@axway.com>
This commit is contained in:
Jamie Peabody
2021-04-29 20:09:10 +01:00
committed by GitHub
parent 3830cff687
commit 747bcacf2c
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
# Changes
## 4.2.3
* patch: fixes [#147](https://github.com/wickedest/Mergely/issues/147). Fixes the css style for the currently selected change.
## 4.2.2:
* patch: fixes issue where initial change was not being set causing next/prev and merge actions to not work as expected.

View File

@@ -1,6 +1,6 @@
{
"name": "mergely",
"version": "4.2.2",
"version": "4.2.3",
"description": "A javascript UI for diff/merge",
"directories": {
"doc": "doc",

View File

@@ -1473,8 +1473,8 @@ jQuery.extend(Mgly.CodeMirrorDiffView.prototype, {
// gutter markup that highlights all gutter line numbers for the current change.
// cm doesn't give us the ability to style the line numbers directly.
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');
var lhsLineNumbers = jQuery('#' + this.id + '-lhs ~ .CodeMirror .CodeMirror-code .CodeMirror-linenumber.CodeMirror-gutter-elt');
var rhsLineNumbers = jQuery('#' + this.id + '-rhs ~ .CodeMirror .CodeMirror-code .CodeMirror-linenumber.CodeMirror-gutter-elt');
var jf, jt, i, j;
rhsLineNumbers.removeClass('mergely current');
lhsLineNumbers.removeClass('mergely current');