MDL-86975 mod_book: fix alignment of chapter editing delete icon.

Mis-aligned since changes to previously used action icon in df486967.
This commit is contained in:
Paul Holden
2025-10-22 00:23:43 +01:00
parent d33ecac29c
commit 4889b16004
+11 -11
View File
@@ -305,17 +305,17 @@ function book_get_toc($chapters, $chapter, $book, $cm, $edit) {
array('title' => get_string('editchapter', 'mod_book', $titleunescaped)));
$deleteaction = new confirm_action(get_string('deletechapter', 'mod_book', $titleunescaped));
$toc .= $OUTPUT->action_icon(
new moodle_url('delete.php', [
'id' => $cm->id,
'chapterid' => $ch->id,
'sesskey' => sesskey(),
'confirm' => 1,
]),
new pix_icon('t/delete', get_string('deletechapter', 'mod_book', $title)),
$deleteaction,
['title' => get_string('deletechapter', 'mod_book', $titleunescaped)]
);
$toc .= $OUTPUT->action_link(
new moodle_url('delete.php', [
'id' => $cm->id,
'chapterid' => $ch->id,
'sesskey' => sesskey(),
'confirm' => 1,
]),
$OUTPUT->pix_icon('t/delete', get_string('deletechapter', 'mod_book', $title)),
$deleteaction,
['title' => get_string('deletechapter', 'mod_book', $titleunescaped)]
);
if ($ch->hidden) {
$toc .= html_writer::link(new moodle_url('show.php', array('id' => $cm->id, 'chapterid' => $ch->id, 'sesskey' => $USER->sesskey)),