🎨 Improve CSS around Swiper component

This commit is contained in:
2023-06-04 16:04:26 +02:00
parent 4508ba3fbd
commit 819e63cf31
7 changed files with 42 additions and 44 deletions

View File

@ -4,6 +4,7 @@ import { Swiper, SwiperSlide } from "swiper/vue";
import { Virtual } from "swiper";
import { ref, watch } from "vue";
import { getDateSkippingWeekend } from "../util";
import ScrollableContainer from "../components/scrollable-container.vue";
defineProps({
element: {
@ -109,9 +110,9 @@ watch(changeDate, (date) => {
:key="index"
:virtualIndex="index"
>
<div class="content">
<ScrollableContainer>
<component :is="element" :date="date" />
</div>
</ScrollableContainer>
</swiper-slide>
</swiper>
</template>
@ -122,15 +123,9 @@ watch(changeDate, (date) => {
<style scoped>
.swiper {
padding: 10px;
padding: 5px 10px 0px 10px;
z-index: 0;
height: 100%;
}
.content {
height: calc(100% - 150px);
overflow-y: auto;
padding-bottom: 100px;
touch-action: pan-y;
box-sizing: border-box;
}
</style>