feat: Optimisation des images
This commit is contained in:
@ -14,7 +14,7 @@ defineEmits(["answerSelected"]);
|
||||
const slides = ref();
|
||||
|
||||
if (props.question.weight == null) {
|
||||
props.question.weight = props.question.answers[0].weight
|
||||
props.question.weight = props.question.answers[0].weight;
|
||||
}
|
||||
const answerWeight = ref(props.question.weight);
|
||||
|
||||
@ -63,10 +63,7 @@ function slideMove(splide, newIndex) {
|
||||
:key="answer.id"
|
||||
@click="$emit('answerSelected', question, answerWeight)"
|
||||
>
|
||||
<img
|
||||
height="200"
|
||||
:src="`/answers/${answer.image}.png`"
|
||||
/>
|
||||
<img height="200" :src="`/answers/${answer.image}.webp`" />
|
||||
</SplideSlide>
|
||||
</Splide>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user