Adjust carousel navigation arrows and spacing
This commit is contained in:
parent
4bf23f0d25
commit
9d7ecd3dd1
|
|
@ -16,17 +16,16 @@
|
|||
:style="{
|
||||
'--swiper-navigation-color': 'rgb(71 85 105)',
|
||||
'--swiper-pagination-color': 'rgb(71 85 105)',
|
||||
'--swiper-pagination-bottom': 'auto',
|
||||
'--swiper-pagination-top': '1rem',
|
||||
'--swiper-navigation-top-offset': '5rem'
|
||||
'--swiper-pagination-top': '0',
|
||||
'--swiper-navigation-top-offset': '4rem'
|
||||
}"
|
||||
:modules="[SwiperAutoplay, SwiperPagination, SwiperNavigation]"
|
||||
class="h-full w-full"
|
||||
class="h-full w-full px-12 pt-16"
|
||||
>
|
||||
|
||||
<SwiperSlide v-for="(image, index) in gallery" :key="image.id || index" class="!flex !items-center !justify-center !py-4 !bg-zinc-100">
|
||||
<SwiperSlide v-for="(image, index) in gallery" :key="image.id || index" class="!flex !items-start !justify-center !py-8 !bg-zinc-100">
|
||||
<img :src="'/' + bucket + '/' + image.image"
|
||||
style="max-width: 100%; max-height: calc(85vh - 40px); object-fit: contain;"/>
|
||||
style="max-width: calc(100% - 80px); max-height: calc(85vh - 160px); object-fit: contain;"/>
|
||||
</SwiperSlide>
|
||||
</Swiper>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in a new issue