diff --git a/mod/quiz/mod_form.php b/mod/quiz/mod_form.php index 9f3c90ea466..86bf35bdc80 100644 --- a/mod/quiz/mod_form.php +++ b/mod/quiz/mod_form.php @@ -378,11 +378,13 @@ class mod_quiz_mod_form extends moodleform_mod { list($identifier, $component) = $string; $label = get_string($identifier, $component); + $group[] = $mform->createElement('html', html_writer::start_div('review_option_item')); + $el = $mform->createElement('checkbox', $field . $whenname, '', $label); if ($withhelp) { - $label .= ' ' . $OUTPUT->help_icon($identifier, $component); + $el->_helpbutton = $OUTPUT->render(new help_icon($identifier, $component)); } - - $group[] = $mform->createElement('checkbox', $field . $whenname, '', $label); + $group[] = $el; + $group[] = $mform->createElement('html', html_writer::end_div()); } $mform->addGroup($group, $whenname . 'optionsgrp', get_string('review' . $whenname, 'quiz'), null, false); diff --git a/theme/boost/scss/moodle/modules.scss b/theme/boost/scss/moodle/modules.scss index 971c1879b8d..d3473408291 100644 --- a/theme/boost/scss/moodle/modules.scss +++ b/theme/boost/scss/moodle/modules.scss @@ -1159,11 +1159,16 @@ div#dock { clear: left; } #page-mod-quiz-mod #id_reviewoptionshdr .form-check { - width: 90%; + width: auto; height: 22px; justify-content: flex-start; } +#page-mod-quiz-mod #id_reviewoptionshdr .review_option_item { + width: 90%; + height: 22px; +} + // Question navigation block. .path-mod-quiz #mod_quiz_navblock { .qnbutton { diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index 096e9746271..eb3d6b3a57f 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -17473,10 +17473,14 @@ div#dock { clear: left; } #page-mod-quiz-mod #id_reviewoptionshdr .form-check { - width: 90%; + width: auto; height: 22px; justify-content: flex-start; } +#page-mod-quiz-mod #id_reviewoptionshdr .review_option_item { + width: 90%; + height: 22px; } + .path-mod-quiz #mod_quiz_navblock .qnbutton { text-decoration: none; font-size: 14px; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 2c177c60cb3..7950969a951 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -17700,10 +17700,14 @@ div#dock { clear: left; } #page-mod-quiz-mod #id_reviewoptionshdr .form-check { - width: 90%; + width: auto; height: 22px; justify-content: flex-start; } +#page-mod-quiz-mod #id_reviewoptionshdr .review_option_item { + width: 90%; + height: 22px; } + .path-mod-quiz #mod_quiz_navblock .qnbutton { text-decoration: none; font-size: 14px;