Fix RatingScale

This commit is contained in:
Christian Cueni 2023-01-30 10:59:09 +01:00
parent 229262a609
commit 013b3cf3b8
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
class="col-start-2 row-span-2 inline-flex h-9 w-11 items-center justify-center rounded text-xl font-bold"
:style="ratingValueStyle"
>
{{ rating }}
{{ rating.toFixed(1) }}
</span>
<h5 class="text-base">{{ answers }} {{ $t("feedback.answers") }}</h5>
</div>
@ -153,7 +153,7 @@ const getRGBString = ([r, g, b]: RGB) => {
// };
const percent = computed(() => {
return (scale.value - 1) * 33.33 + weight.value * 25;
return (scale.value - 1) * 33.33 + weight.value * 33.33;
});
const leftPosition = computed(() => {