(#refs 549) Change "…" at skipped line to pseudo element

This commit is contained in:
Shintaro Murakami
2015-01-11 01:04:13 +09:00
parent 136c5854f3
commit 2ade54b7e3
3 changed files with 8 additions and 4 deletions

View File

@@ -180,10 +180,10 @@ $(function(){
);
$('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() {

View File

@@ -1014,6 +1014,10 @@ table.diff tbody tr.not-diff:hover td{
content: attr(line-number);
}
.diff .skipline:before {
content: "..."
}
/****************************************************************************/
/* Repository Settings */
/****************************************************************************/

View File

@@ -161,9 +161,9 @@ diffview = {
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