Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The space-between attribute does not produce a gap properly when loading #101

Open
lxccc812 opened this issue Oct 23, 2023 · 1 comment
Open

Comments

@lxccc812
Copy link

lxccc812 commented Oct 23, 2023

Loading status:
image

Status after loading is complete::
image

This property does not produce the correct interval when loading and defaults to 0?
Temporary solution:
Stop using space-between
change into:

<template>
    <SwiperSlide class="my-swiper"></SwiperSlide>
</template>

<style scoped lang="scss">
.my-swiper {
    margin-right: 8px;

    :last-child {
        margin-right: 0;
    }
}
</style>

nuxt 3.7.4
nuxt-swiper 1.2.2

@Jones-S
Copy link

Jones-S commented Oct 2, 2024

Well actually this does not seem to work if you want to fit one slide into your slider width. If so, the next slide will be off the value of the margin:
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants