mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
MDL-68107 mod_label: make images dropped onto courses responsive
This commit is contained in:
parent
4144e278a6
commit
99ddf538ca
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user