Skip to content
Snippets Groups Projects
Commit 721a102e authored by srosse's avatar srosse
Browse files

OO-4424: break more aggressively long questions title in test menu

parent 2a202ce9
No related branches found
No related tags found
No related merge requests found
......@@ -141,7 +141,7 @@ public class AssessmentTreeComponentRenderer extends AssessmentObjectComponentRe
.append("<header><h4>").append(StringHelper.escapeHtml(sectionNode.getSectionPartTitle())).append("</h4>");
sb.append("</header><ul class='o_testpartnavigation_inner list-unstyled'>");
sectionNode.getChildren().forEach((child)
sectionNode.getChildren().forEach(child
-> renderNavigation(renderer, sb, component, child, ubu, translator, options));
sb.append("</ul></li>");
}
......@@ -221,6 +221,10 @@ public class AssessmentTreeComponentRenderer extends AssessmentObjectComponentRe
int num = component.getCandidateSessionContext().getNumber(itemNode);
title = translator.translate("question.title", new String[] { Integer.toString(num) });
}
if(title != null) {
title = title.replace("_", " ");
}
sb.append("<span class='questionTitle'>").append(title).append("</span>");
if(event == null) {
......
......@@ -1301,6 +1301,7 @@ table.o_qti_item_kprim {
.o_assessmentitem .questionTitle {
margin-right: 1em;
overflow-wrap: break-word;
}
}
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment