mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-22 11:39:03 +01:00
Fix displaying of inlines related both to visible and hidden diff
Summary: I tried also filling the column by empty space but this looks better. Test Plan: Displayed a comment both with visible and hidden inlines. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T1216 Differential Revision: https://secure.phabricator.com/D2789
This commit is contained in:
parent
c762050b7c
commit
8a8a48cc8f
1 changed files with 3 additions and 4 deletions
|
@ -78,11 +78,9 @@ final class PhabricatorInlineSummaryView extends AphrontView {
|
|||
}
|
||||
}
|
||||
|
||||
$cols = $has_where ? 3 : 2;
|
||||
|
||||
$rows[] =
|
||||
'<tr>'.
|
||||
'<th colspan="'.$cols.'">'.
|
||||
'<th colspan="3">'.
|
||||
phutil_escape_html($group).
|
||||
'</th>'.
|
||||
'</tr>';
|
||||
|
@ -123,6 +121,7 @@ final class PhabricatorInlineSummaryView extends AphrontView {
|
|||
|
||||
$where = idx($item, 'where');
|
||||
|
||||
$colspan = ($has_where ? '' : ' colspan="2"');
|
||||
$rows[] =
|
||||
'<tr>'.
|
||||
'<td class="inline-line-number">'.$lines.'</td>'.
|
||||
|
@ -131,7 +130,7 @@ final class PhabricatorInlineSummaryView extends AphrontView {
|
|||
phutil_escape_html($where).
|
||||
'</td>'
|
||||
: null).
|
||||
'<td class="inline-summary-content">'.
|
||||
'<td class="inline-summary-content"'.$colspan.'>'.
|
||||
'<div class="phabricator-remarkup">'.
|
||||
$item['content'].
|
||||
'</div>'.
|
||||
|
|
Loading…
Add table
Reference in a new issue