This commit is contained in:
Jun Pataleta 2023-04-19 15:45:55 +08:00
commit 07243a3ae3
5 changed files with 13 additions and 5 deletions

View file

@ -386,14 +386,16 @@ class renderer extends plugin_renderer_base {
$qnostring = 'questionnonavinfo'; $qnostring = 'questionnonavinfo';
} }
$tooltip = get_string('questionx', 'question', s($button->number)) . ' - ' . $button->statestring;
$a = new stdClass(); $a = new stdClass();
$a->number = $button->number; $a->number = s($button->number);
$a->attributes = implode(' ', $extrainfo); $a->attributes = implode(' ', $extrainfo);
$tagcontents = html_writer::tag('span', '', ['class' => 'thispageholder']) . $tagcontents = html_writer::tag('span', '', ['class' => 'thispageholder']) .
html_writer::tag('span', '', ['class' => 'trafficlight']) . html_writer::tag('span', '', ['class' => 'trafficlight']) .
get_string($qnostring, 'quiz', $a); get_string($qnostring, 'quiz', $a);
$tagattributes = ['class' => implode(' ', $classes), 'id' => $button->id, $tagattributes = ['class' => implode(' ', $classes), 'id' => $button->id,
'title' => $button->statestring, 'data-quiz-page' => $button->page]; 'title' => $tooltip, 'data-quiz-page' => $button->page];
if ($button->url) { if ($button->url) {
return html_writer::link($button->url, $tagcontents, $tagattributes); return html_writer::link($button->url, $tagcontents, $tagattributes);

View file

@ -1248,7 +1248,8 @@ img.userpicture {
width: 30px; width: 30px;
border-radius: 3px; border-radius: 3px;
border: 0; border: 0;
overflow: visible; overflow: hidden;
white-space: nowrap;
margin: 0 6px 6px 0; margin: 0 6px 6px 0;
} }

View file

@ -269,6 +269,7 @@ body.path-question-type {
.que span.qno { .que span.qno {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
word-break: break-word;
} }
.que .info > div { .que .info > div {

View file

@ -31371,6 +31371,7 @@ body.path-question-type .form-group .col-form-label.sr-only:not(legend):not([for
.que span.qno { .que span.qno {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
word-break: break-word;
} }
.que .info > div { .que .info > div {
@ -33735,7 +33736,8 @@ img.userpicture {
width: 30px; width: 30px;
border-radius: 3px; border-radius: 3px;
border: 0; border: 0;
overflow: visible; overflow: hidden;
white-space: nowrap;
margin: 0 6px 6px 0; margin: 0 6px 6px 0;
} }
.path-mod-quiz #mod_quiz_navblock span.qnbutton { .path-mod-quiz #mod_quiz_navblock span.qnbutton {

View file

@ -31371,6 +31371,7 @@ body.path-question-type .form-group .col-form-label.sr-only:not(legend):not([for
.que span.qno { .que span.qno {
font-size: 1.5em; font-size: 1.5em;
font-weight: bold; font-weight: bold;
word-break: break-word;
} }
.que .info > div { .que .info > div {
@ -33735,7 +33736,8 @@ img.userpicture {
width: 30px; width: 30px;
border-radius: 3px; border-radius: 3px;
border: 0; border: 0;
overflow: visible; overflow: hidden;
white-space: nowrap;
margin: 0 6px 6px 0; margin: 0 6px 6px 0;
} }
.path-mod-quiz #mod_quiz_navblock span.qnbutton { .path-mod-quiz #mod_quiz_navblock span.qnbutton {