diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 72af47cda4d2b..079a080a8d531 100644 --- a/mod/forum/lib.php +++ b/mod/forum/lib.php @@ -2582,6 +2582,7 @@ function forum_print_attachments($post, $cm, $type) { $filename = $file->get_filename(); $mimetype = $file->get_mimetype(); $iconimage = $OUTPUT->pix_icon(file_file_icon($file), get_mimetype_description($file), 'moodle', array('class' => 'icon')); + $iconimage = html_writer::span($iconimage, '', ['style' => 'display: inline-block; width: 24px; height; 24px;']); $path = file_encode_url($CFG->wwwroot.'/pluginfile.php', '/'.$context->id.'/mod_forum/attachment/'.$post->id.'/'.$filename); if ($type == 'html') {