Skip to content

Commit

Permalink
🪲 fix quiz answers position (#5520)
Browse files Browse the repository at this point in the history
Fixes #5129

**How to test?**
- answer quiz questions (e.g., first 4 questions of level 11)
- make sure that the content of any code blocks is aligned correctly.
  • Loading branch information
hasan-sh authored May 15, 2024
1 parent d300e70 commit 65ce723
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions static/css/additional.css
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,10 @@ kbd {
.teacher-adv pre {
max-height: 22rem;
overflow-y: scroll;
}

.answer-block {
pre {
text-align: start;
}
}
2 changes: 1 addition & 1 deletion templates/quiz/partial-review-question.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
{% endif %}

<div class="flex flex-col justify-center items-center gap-4 turn-pre-into-ace text-center">
<div class="answer-block flex flex-col justify-center items-center gap-4 turn-pre-into-ace text-center">
<p class="text-green-700 italic text-2xl w-96 max-w-full">
{{_('correct_answer')}}
</p>
Expand Down

0 comments on commit 65ce723

Please sign in to comment.