Merge branch 'MDL-64236-master' of git://github.com/mihailges/moodle

This commit is contained in:
Adrian Greeve
2021-06-10 11:29:19 +08:00
2 changed files with 8 additions and 2 deletions
+8 -1
View File
@@ -687,7 +687,10 @@ class grade_report_grader extends grade_report {
$headerrow->attributes['class'] = 'heading';
$studentheader = new html_table_cell();
$studentheader->attributes['class'] = 'header';
// The browser's scrollbar may partly cover (in certain operative systems) the content in the student header
// when horizontally scrolling through the table contents (most noticeable when in RTL mode).
// Therefore, add slight padding on the left or right when using RTL mode.
$studentheader->attributes['class'] = "header pl-3";
$studentheader->scope = 'col';
$studentheader->header = true;
$studentheader->id = 'studentheader';
@@ -748,6 +751,10 @@ class grade_report_grader extends grade_report {
$icon = $OUTPUT->pix_icon('i/enrolmentsuspended', $suspendedstring);
$usercell->text .= html_writer::tag('span', $icon, array('class'=>'usersuspendedicon'));
}
// The browser's scrollbar may partly cover (in certain operative systems) the content in the user cells
// when horizontally scrolling through the table contents (most noticeable when in RTL mode).
// Therefore, add slight padding on the left or right when using RTL mode.
$usercell->attributes['class'] .= ' pl-3';
$userrow->cells[] = $usercell;
-1
View File
@@ -79,7 +79,6 @@
}
.path-grade-report-grader .gradeparent .user.cell .userpicture {
margin: 0 4px;
border: none;
vertical-align: middle;
}