fix [front]: fix warning

This commit is contained in:
Alice 2022-07-29 00:52:40 +02:00
parent 751755c247
commit 445698ea05

View file

@ -1,24 +1,26 @@
<template>
<section class="section">
<h2 class="title">La semaine prochaine</h2>
<MovieCardFull :film="firstFilm" />
</section>
<section v-if="nextFilms.length" class="section is-relative">
<h2 class="title">Et après</h2>
<swiper
class="py-4"
:loadtheme="false"
:modules="modules"
slides-per-view="auto"
:space-between="52"
center-insufficient-slides
navigation
>
<swiper-slide v-for="film of nextFilms" :key="film.id">
<MovieCardShort :film="film" class="block" />
</swiper-slide>
</swiper>
</section>
<main>
<section class="section">
<h2 class="title">La semaine prochaine</h2>
<MovieCardFull :film="firstFilm" />
</section>
<section v-if="nextFilms.length" class="section is-relative">
<h2 class="title">Et après</h2>
<swiper
class="py-4"
:loadtheme="false"
:modules="modules"
slides-per-view="auto"
:space-between="52"
center-insufficient-slides
navigation
>
<swiper-slide v-for="film of nextFilms" :key="film.id">
<MovieCardShort :film="film" class="block" />
</swiper-slide>
</swiper>
</section>
</main>
</template>
<script setup lang="ts">