Fix UI issue on passed-label

This commit is contained in:
Christian Cueni 2024-04-16 15:04:59 +02:00
parent 97dd952e4f
commit 70b3138574
1 changed files with 4 additions and 3 deletions

View File

@ -73,7 +73,7 @@ function findUserPointsHtml(userId: string) {
"%)"; "%)";
if (!gradedUser.passed) { if (!gradedUser.passed) {
result += ` <span class="my-2 rounded-md bg-error-red-200 px-2.5 py-0.5">${t( result += ` <span class="my-2 rounded-md bg-error-red-200 px-2.5 py-0.5 inline-block leading-5">${t(
"a.Nicht bestanden" "a.Nicht bestanden"
)}</span>`; )}</span>`;
} }
@ -157,10 +157,11 @@ function findUserPointsHtml(userId: string) {
</div> </div>
<!-- eslint-disable vue/no-v-html --> <!-- eslint-disable vue/no-v-html -->
<div <p
v-if="findGradedUser(csu.user_id) && !isPraxisAssignment" v-if="findGradedUser(csu.user_id) && !isPraxisAssignment"
class="text-left md:text-right"
v-html="findUserPointsHtml(csu.user_id)" v-html="findUserPointsHtml(csu.user_id)"
></div> ></p>
</section> </section>
</template> </template>
<template #link> <template #link>