fix: css issues

This commit is contained in:
Matthias Jung
2026-08-04 23:55:16 +02:00
parent c51760c57a
commit b34745db4c
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -95,12 +95,12 @@
.answer-table td.answer-cell-solution, .answer-table td.answer-cell-solution,
.answer-table td.answer-cell-correct .answer-mark, .answer-table td.answer-cell-correct .answer-mark,
.answer-table td.answer-cell-solution .answer-mark { .answer-table td.answer-cell-solution .answer-mark {
background-color: #3bb583; background-color: #3bb583 !important;
} }
.answer-table td.answer-cell-wrong, .answer-table td.answer-cell-wrong,
.answer-table td.answer-cell-wrong .answer-mark { .answer-table td.answer-cell-wrong .answer-mark {
background-color: #fe756c; background-color: #fe756c !important;
} }
.exam-question { .exam-question {
+1 -1
View File
@@ -344,7 +344,7 @@
} }
function answerCellClass(questionIndex, answerIndex) { function answerCellClass(questionIndex, answerIndex) {
if (currentPart.value.status !== "evaluated") return ""; if (currentPart.value.status === "running") return "";
var question = currentPart.value.questions[questionIndex]; var question = currentPart.value.questions[questionIndex];
var sourceIndex = question.order[answerIndex]; var sourceIndex = question.order[answerIndex];
if (question.selected === answerIndex && sourceIndex === 0) return "answer-cell-correct"; if (question.selected === answerIndex && sourceIndex === 0) return "answer-cell-correct";
+2 -1
View File
@@ -127,7 +127,8 @@
</div> </div>
</div> </div>
<div class="exam-paper-layout" :key="'exam-part-' + displayedPartIndex + '-' + currentPart.code"> <div class="exam-paper-layout"
:key="'exam-part-' + displayedPartIndex + '-' + currentPart.code + '-' + currentPart.status">
<main class="exam-questions course"> <main class="exam-questions course">
<template v-for="(questionState, questionIndex) in currentPart.questions" :key="questionState.id"> <template v-for="(questionState, questionIndex) in currentPart.questions" :key="questionState.id">
<article class="question exam-question" :class="'layout-' + questionData(questionState).layout" <article class="question exam-question" :class="'layout-' + questionData(questionState).layout"