Commit 4d235731 authored by Tim Hunt's avatar Tim Hunt
Browse files

MDL-70374 qtype_multichoice: improve alignment of choices

parent 4ec279a2
......@@ -104,7 +104,11 @@ abstract class qtype_multichoice_renderer_base extends qtype_with_combined_feedb
));
}
$questionnumber = html_writer::span($this->number_in_style($value, $question->answernumbering), 'answernumber');
$questionnumber = '';
if ($question->answernumbering !== 'none') {
$questionnumber = html_writer::span(
$this->number_in_style($value, $question->answernumbering), 'answernumber');
}
$answertext = $question->format_text($ans->answer, $ans->answerformat, $qa, 'question', 'answer', $ansid);
$questionanswer = html_writer::div($answertext, 'flex-fill ml-1');
......
......@@ -26,6 +26,10 @@
width: 14px;
}
.que.multichoice .answer .answernumber {
min-width: 1.5em;
}
/* Editing form. */
body#page-question-type-multichoice div[id^=fitem_id_][id*=answer_] {
background: #eee;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment