diff --git a/src/main/twirl/helper/diff.scala.html b/src/main/twirl/helper/diff.scala.html
index b9a044a..bf0f6cf 100644
--- a/src/main/twirl/helper/diff.scala.html
+++ b/src/main/twirl/helper/diff.scala.html
@@ -180,10 +180,10 @@
);
$('table.diff th').hover(
function() {
- $(this).closest('tr').find('td').find('b').css('display', 'inline-block');
+ $(this).nextAll().find('b').first().css('display', 'inline-block');
},
function() {
- $(this).closest('tr').find('td').find('b').css('display', 'none');
+ $(this).nextAll().find('b').first().css('display', 'none');
}
);
$('.add-comment').click(function() {
diff --git a/src/main/webapp/assets/common/css/gitbucket.css b/src/main/webapp/assets/common/css/gitbucket.css
index 90c3c99..fddc9ff 100644
--- a/src/main/webapp/assets/common/css/gitbucket.css
+++ b/src/main/webapp/assets/common/css/gitbucket.css
@@ -1014,6 +1014,10 @@
content: attr(line-number);
}
+.diff .skipline:before {
+ content: "..."
+}
+
/****************************************************************************/
/* Repository Settings */
/****************************************************************************/
diff --git a/src/main/webapp/assets/vendors/jsdifflib/diffview.js b/src/main/webapp/assets/vendors/jsdifflib/diffview.js
index cf8d18b..346811a 100644
--- a/src/main/webapp/assets/vendors/jsdifflib/diffview.js
+++ b/src/main/webapp/assets/vendors/jsdifflib/diffview.js
@@ -161,9 +161,9 @@
b += jump;
n += jump;
i += jump - 1;
- node.appendChild(telt("th", "..."));
+ node.appendChild(ctelt("th", "skipline", ""));
if (!inline) node.appendChild(ctelt("td", "skip", ""));
- node.appendChild(telt("th", "..."));
+ node.appendChild(ctelt("th", "skipline", ""));
node.appendChild(ctelt("td", "skip", ""));
// skip last lines if they're all equal