Skip to content

Commit

Permalink
MDL-30498 user name can overlap user report icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt committed Dec 9, 2011
1 parent 6508da4 commit b3e3062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion grade/report/grader/lib.php
Expand Up @@ -632,7 +632,7 @@ public function get_left_rows() {
$usercell->scope = 'row'; $usercell->scope = 'row';


if ($showuserimage) { if ($showuserimage) {
$usercell->text = $OUTPUT->container($OUTPUT->user_picture($user), 'userpic'); $usercell->text = $OUTPUT->user_picture($user);
} }


$usercell->text .= html_writer::link(new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $this->course->id)), fullname($user)); $usercell->text .= html_writer::link(new moodle_url('/user/view.php', array('id' => $user->id, 'course' => $this->course->id)), fullname($user));
Expand Down
10 changes: 3 additions & 7 deletions grade/report/grader/styles.css
Expand Up @@ -269,16 +269,12 @@ table#user-grades td.topleft {
background-color:#fff; background-color:#fff;
} }


.path-grade-report-grader div.userpic { .path-grade-report-grader th.user img {
margin-right:10px;
float:left;
}

.path-grade-report-grader div.userpic img {
border:3px double #cecece; border:3px double #cecece;
vertical-align:middle; vertical-align:top;
width:2.7em; width:2.7em;
height:2.7em; height:2.7em;
margin-right:10px;
} }


.path-grade-report-grader a.quickedit { .path-grade-report-grader a.quickedit {
Expand Down

0 comments on commit b3e3062

Please sign in to comment.