Skip to content

Commit

Permalink
MDL-78106 gradereport_grader: Fixed sort arrow size in grader report
Browse files Browse the repository at this point in the history
  • Loading branch information
kevpercy committed Aug 28, 2023
1 parent cccc009 commit a9ea85a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions grade/report/grader/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 3 additions & 1 deletion grade/report/grader/templates/headercell.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -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}}}
Expand Down
3 changes: 2 additions & 1 deletion grade/report/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,8 @@ protected function get_sort_arrow(string $direction = 'down', ?moodle_url $sortl
$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']);
}

/**
Expand Down

0 comments on commit a9ea85a

Please sign in to comment.