Verified Commit 7aafed48 authored by Gareth Barnard's avatar Gareth Barnard 💬
Browse files

Fix 'User profile image is cropped' - https://moodle.org/mod/forum/discuss.php?d=417776.

parent 2f038a2d
......@@ -3,6 +3,7 @@ Change Log in version 3.0.5 (2020073106)
1. Fix 'Menu bar height loss' - #222.
2. Fix 'Activity meta information not showing when student first accesses page' - https://moodle.org/mod/forum/discuss.php?d=417731.
3. Fix 'Footer shown on popup layout' - https://moodle.org/mod/forum/discuss.php?d=417793.
4. Fix 'User profile image is cropped' - https://moodle.org/mod/forum/discuss.php?d=417776.
Change Log in version 3.0.4 (2020073105)
========================================
......
......@@ -136,9 +136,11 @@ class renderer extends \core_user\output\myprofile\renderer {
protected function transform_contact_category($oldcontactcategory) {
$contactcategory = new category('contact', '');
$node = new node('contact', 'userimage', '', null, null,
$this->userimage());
$contactcategory->add_node($node);
$userimage = $this->userimage();
if (!empty($userimage)) {
$node = new node('contact', 'userimage adaptableuserpicture', '', null, null, $userimage);
$contactcategory->add_node($node);
}
if ((empty($this->user->userdetails['firstname'])) || (empty($this->user->userdetails['lastname']))) {
$node = new node('contact', 'fullname', '', null, null,
......@@ -382,9 +384,7 @@ class renderer extends \core_user\output\myprofile\renderer {
$output = '';
if (!empty($this->user)) {
$output .= html_writer::start_tag('li', array('class' => 'adaptableuserpicture'));
$output .= $this->output->user_picture($this->user, array('size' => '1'));
$output .= html_writer::end_tag('li');
}
return $output;
......
......@@ -54,7 +54,7 @@
left: 0;
position: absolute;
right: 0;
top: -80px;
top: -60px;
}
#adaptable_profile_tree .ucol1 .adaptableuserpicture a img.userpicture {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment