From 8f57e6ebafede4ce68a693a54de0a11e73a7e98e Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Sat, 10 Sep 2016 20:08:35 -0400 Subject: [PATCH 1/2] theme_elegance: Fix issue #172 --- renderers/core_renderer.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/renderers/core_renderer.php b/renderers/core_renderer.php index 430cacd..190c235 100644 --- a/renderers/core_renderer.php +++ b/renderers/core_renderer.php @@ -100,9 +100,6 @@ protected function block_header(block_contents $bc) { public function user_picture(stdClass $user, array $options = null) { global $PAGE; - if ($PAGE->bodyid == 'page-mod-forum-discuss' || $PAGE->bodyid == 'page-mod-forum-post' ) { - $options = array('size' => '100'); - } if ($PAGE->bodyid == 'page-site-index' && isset($options['courseid'])) { $options = array('size' => '100'); } From 4fa0f569b309f87d2421d4c6c007c5bc9c6dceff Mon Sep 17 00:00:00 2001 From: Stephen Bourget Date: Sat, 10 Sep 2016 20:27:39 -0400 Subject: [PATCH 2/2] theme_elegance: Fix display of user picture on forum posts --- less/elements/forum.less | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/less/elements/forum.less b/less/elements/forum.less index 82556db..683a851 100644 --- a/less/elements/forum.less +++ b/less/elements/forum.less @@ -49,21 +49,15 @@ margin-bottom: 10px; } .row { - &.header { - min-height: 111px; - } .no-overflow { margin-bottom: 0; } position: static; margin: 0; .left { - width: 110px; padding: 0; &.picture img { - width: 100px; - height: 100px; - margin: 0; + margin: 10px; border: 1px solid #adc1de; vertical-align: middle; } @@ -88,7 +82,7 @@ } .topic { overflow: auto; - margin-left: 100px; + .subject { padding-top: 6px; color: @headings-color;