Fix RatingScale
This commit is contained in:
parent
229262a609
commit
013b3cf3b8
|
|
@ -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"
|
class="col-start-2 row-span-2 inline-flex h-9 w-11 items-center justify-center rounded text-xl font-bold"
|
||||||
:style="ratingValueStyle"
|
:style="ratingValueStyle"
|
||||||
>
|
>
|
||||||
{{ rating }}
|
{{ rating.toFixed(1) }}
|
||||||
</span>
|
</span>
|
||||||
<h5 class="text-base">{{ answers }} {{ $t("feedback.answers") }}</h5>
|
<h5 class="text-base">{{ answers }} {{ $t("feedback.answers") }}</h5>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -153,7 +153,7 @@ const getRGBString = ([r, g, b]: RGB) => {
|
||||||
// };
|
// };
|
||||||
|
|
||||||
const percent = computed(() => {
|
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(() => {
|
const leftPosition = computed(() => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue