diffs: small UI fixes

This commit is contained in:
Marcin Kuzminski 2018-09-24 15:35:37 +02:00
parent 01bb7220b2
commit 25edeca2ca
2 changed files with 18 additions and 2 deletions

View file

@ -976,6 +976,16 @@ table.cb {
border-top: 1px solid #eee;
}
&.cb-comment-info {
border-top: 1px solid #eee;
color: rgba(0, 0, 0, 0.3);
background: #edf2f9;
td {
}
}
&.cb-hunk {
font-family: @font-family-monospace;
color: rgba(0, 0, 0, 0.3);

View file

@ -236,9 +236,15 @@ collapse_all = len(diffset.files) > collapse_when_files_over
</tr>
%elif c.diffmode == 'sideside':
% if loop.index == 0:
<tr class="cb-hunk">
<tr class="cb-comment-info">
<td colspan="2"></td>
<td class="cb-line" colspan="6">
<td class="cb-line">
<div>
${_('Unmatched inline comments below')}
</div>
</td>
<td colspan="2"></td>
<td class="cb-line">
<div>
${_('Unmatched comments below')}
</div>