File tree Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Expand file tree Collapse file tree 2 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 33
33
}
34
34
35
35
.d2h-lines-added {
36
+ text-align : right;
37
+ }
38
+
39
+ .d2h-lines-added > * {
36
40
background-color : # ceffce ;
37
41
border : 1px solid # b4e2b4 ;
38
42
color : # 399839 ;
42
46
}
43
47
44
48
.d2h-lines-deleted {
49
+ text-align : left;
50
+ }
51
+
52
+ .d2h-lines-deleted > * {
45
53
background-color : # f7c8c8 ;
46
54
border : 1px solid # e9aeae ;
47
55
color : # c33 ;
Original file line number Diff line number Diff line change 21
21
' <a id="' + hideId + '" class="d2h-hide" href="#' + hideId + '">+</a>\n' +
22
22
' <a id="' + showId + 'd2h-show" class="d2h-show" href="#' + showId + '">-</a>\n' +
23
23
' <div class="d2h-clear"></div>\n' +
24
- ' <div class="d2h-file-list">\n' +
24
+ ' <table class="d2h-file-list">\n' +
25
25
26
26
27
27
diffFiles . map ( function ( file ) {
28
- return ' <div class="d2h-file-list-line">\n' +
29
- ' <div class="d2h-file-stats">\n' +
30
- ' <span class="d2h-lines-added">+' + file . addedLines + '</span>\n' +
31
- ' <span class="d2h-lines-deleted">-' + file . deletedLines + '</span>\n' +
32
- ' </div>\n' +
33
- ' <div class="d2h-file-name"><a href="#' + printerUtils . getHtmlId ( file ) + '"> ' + printerUtils . getDiffName ( file ) + '</a></div>\n' +
34
- ' </div>\n'
28
+ return ' <tr class="d2h-file-list-line">\n' +
29
+ ' <td class="d2h-lines-added">\n' +
30
+ ' <span>+' + file . addedLines + '</span>\n' +
31
+ ' </td>\n' +
32
+ ' <td class="d2h-lines-deleted">\n' +
33
+ ' <span>-' + file . deletedLines + '</span>\n' +
34
+ ' </td>\n' +
35
+ ' <td class="d2h-file-name"><a href="#' + printerUtils . getHtmlId ( file ) + '"> ' + printerUtils . getDiffName ( file ) + '</a></td>\n' +
36
+ ' </tr>\n'
35
37
} ) . join ( '\n' ) +
36
- '</div ></div>\n' ;
38
+ '</table ></div>\n' ;
37
39
} ;
38
40
39
41
module . exports [ 'FileListPrinter' ] = new FileListPrinter ( ) ;
You can’t perform that action at this time.
0 commit comments