Skip to content

Commit

Permalink
fix the display of questions in print
Browse files Browse the repository at this point in the history
I had forgotten about the `print-visible` class.

Now the `question-wrapper` element is print-visible, and only visible if
it's the current question.

fixes #1114
  • Loading branch information
christianp committed Sep 24, 2024
1 parent 3657117 commit 4f059d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/default/templates/question.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div id="diagnostic-feedback" class="diagnostic-feedback" data-bind="visible: diagnostic_feedback, latex: diagnostic_feedback"></div>

<div id="questionDisplay" data-bind="foreach: questions">
<div id="question-wrapper" data-bind="promise: html_promise, visible: isCurrentQuestion() || $parent.mode()=='review'">
<div id="question-wrapper" class="print-visible" data-bind="promise: html_promise, visible: isCurrentQuestion">
</div>
</div>
</div>
Expand Down

0 comments on commit 4f059d5

Please sign in to comment.