mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-17 02:40:40 +01:00
(#refs 549) Change "…" at skipped line to pseudo element
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -1014,6 +1014,10 @@ table.diff tbody tr.not-diff:hover td{
|
||||
content: attr(line-number);
|
||||
}
|
||||
|
||||
.diff .skipline:before {
|
||||
content: "..."
|
||||
}
|
||||
|
||||
/****************************************************************************/
|
||||
/* Repository Settings */
|
||||
/****************************************************************************/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user