MDL-82867 output: consistently space external link pixicon.

This commit is contained in:
Paul Holden
2025-10-08 16:17:56 +01:00
parent 1b2d270397
commit ebc79d11de
2 changed files with 3 additions and 4 deletions
@@ -392,11 +392,11 @@ class exifremover_service extends service implements file_redactor_service_inter
}
}
$icon = $OUTPUT->pix_icon('i/externallink', get_string('opensinnewwindow'));
$icon = $OUTPUT->pix_icon('i/externallink', get_string('opensinnewwindow'), attributes: ['class' => 'ms-1']);
$a = (object) [
'link' => html_writer::link(
url: 'https://exiftool.sourceforge.net/install.html',
text: "https://exiftool.sourceforge.net/install.html $icon",
text: 'https://exiftool.sourceforge.net/install.html' . $icon,
attributes: ['role' => 'opener', 'rel' => 'noreferrer', 'target' => '_blank'],
),
];
+1 -2
View File
@@ -1941,8 +1941,7 @@ class core_renderer extends renderer_base {
$newwindowicon = $this->pix_icon(
'i/externallink',
get_string('opensinnewwindow'),
'moodle',
['class' => 'fa fa-externallink fa-fw']
attributes: ['class' => 'ms-1'],
);
}