MDL-78106 gradereport_grader: Fixed sort arrow size in grader report

This commit is contained in:
Kevin Percy 2023-08-14 13:02:39 +08:00
parent cccc00954d
commit a9ea85a15d
3 changed files with 6 additions and 4 deletions

View File

@ -158,9 +158,8 @@
}
.path-grade-report-grader .gradeparent .sorticon {
margin-left: 5px;
vertical-align: middle;
margin-right: 1px;
margin: 0;
}
.path-grade-report-grader .gradeparent td.grade_type_value,

View File

@ -34,7 +34,9 @@
<div class="d-flex" data-collapse="content">
<div class="d-flex flex-grow-1">
{{{headerlink}}}
{{{arrow}}}
<div class="mx-2 mt-2">
{{{arrow}}}
</div>
</div>
<div>
{{{singleview}}}

View File

@ -598,7 +598,8 @@ abstract class grade_report {
$matrix = ['up' => 'desc', 'down' => 'asc'];
$strsort = get_string($matrix[$direction], 'moodle');
$arrow = $OUTPUT->pix_icon($pix[$direction], '', '', ['class' => 'sorticon']);
return html_writer::link($sortlink, $arrow, ['title' => $strsort, 'aria-label' => $strsort, 'data-collapse' => 'sort']);
return html_writer::link($sortlink, $arrow, ['title' => $strsort, 'aria-label' => $strsort, 'data-collapse' => 'sort',
'class' => 'arrow_link py-1']);
}
/**