MDL-68107 mod_label: make images dropped onto courses responsive

This commit is contained in:
Bas Brands 2020-07-27 09:45:17 +02:00
parent 4144e278a6
commit 99ddf538ca

View File

@ -323,6 +323,7 @@ function label_generate_resized_image(stored_file $file, $maxwidth, $maxheight)
$attrib['width'] = $maxwidth;
}
$attrib['class'] = "img-fluid";
$img = html_writer::empty_tag('img', $attrib);
if ($link) {
return html_writer::link($link, $img);