From 6dea293006df5a733641c3272268675459b950a7 Mon Sep 17 00:00:00 2001 From: Philipp Memmel Date: Thu, 19 Sep 2024 08:38:06 +0200 Subject: [PATCH] MDL-83207 mod_forum: Reduce size of file icon in HTML mails --- mod/forum/lib.php | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/forum/lib.php b/mod/forum/lib.php index 77c61cdd0e22e..faa1f5471f13a 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') {