mirror of
https://gitlab.gnome.org/GNOME/gitg
synced 2024-08-27 11:59:17 +00:00
Apply 'pre-wrap' only on code
Now, we can indent the html elements in normal '<td>'. https://bugzilla.gnome.org/show_bug.cgi?id=720886
This commit is contained in:
parent
64c30d5f19
commit
1ce3808ad0
|
@ -91,7 +91,7 @@ function diff_file(file, lnstate, data)
|
|||
break;
|
||||
}
|
||||
|
||||
row += '<td>' + html_escape(l.content).replace(/\t/g, tabrepl) + '</td>';
|
||||
row += '<td class="code">' + html_escape(l.content).replace(/\t/g, tabrepl) + '</td>';
|
||||
|
||||
row += '</tr>';
|
||||
|
||||
|
|
|
@ -57,7 +57,7 @@ div#diff div.file table .gutter {
|
|||
text-align: right;
|
||||
}
|
||||
|
||||
div#diff div.file table td {
|
||||
div#diff div.file table td.code {
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
|
@ -66,7 +66,7 @@ span.tab {
|
|||
display: inline-block;
|
||||
}
|
||||
|
||||
div#diff div.file table.wrapped td {
|
||||
div#diff div.file table.wrapped td.code {
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,10 @@
|
|||
</colgroup>
|
||||
<tbody>
|
||||
<tr class="file_header">
|
||||
<td colspan="3"><!-- ${FILE_STATS} --><span class="file_path"><!-- ${FILE_PATH} --></span></td>
|
||||
<td colspan="3">
|
||||
<!-- ${FILE_STATS} -->
|
||||
<span class="file_path"><!-- ${FILE_PATH} --></span>
|
||||
</td>
|
||||
</tr>
|
||||
<!-- ${FILE_BODY} -->
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in a new issue