diff --git a/sbas/templates/sbas/question_detail.html b/sbas/templates/sbas/question_detail.html
index 456b3b68..0b3013bc 100644
--- a/sbas/templates/sbas/question_detail.html
+++ b/sbas/templates/sbas/question_detail.html
@@ -90,7 +90,7 @@
{% if question.e_feedback %}
Feedback: {{ question.e_feedback|safe }}
{% endif %}
- Correct: {{ question.get_correct_answer_stripped }}
+ Correct: {{ question.get_correct_answer_stripped }}
{% endautoescape %}
diff --git a/templates/base.html b/templates/base.html
index 080cf292..79085138 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -85,6 +85,13 @@
.dropdown-item {
color: lightblue;
}
+ /* Allow the correct-answer badge to wrap if the text is long */
+ .correct-badge {
+ white-space: normal !important;
+ display: inline-block;
+ word-break: break-word;
+ max-width: 100%;
+ }
{% block css %}
{% endblock %}