Skip to content

Conversation

@flobauer
Copy link

@flobauer flobauer commented Jul 7, 2025

Add slideSize parameter to allow fixed slide dimensions with slidesPerView: 'auto'. This enables consistent slide sizing across different viewport sizes and works with both regular and virtual slides.

Fixes the issue of breaking when virtual mode is used with slidePerView='auto'

  • Add slideSize parameter to core defaults and types
  • Update slide sizing logic in updateSlides to handle slideSize
  • Enhance virtual slides to support slideSize with proper resize handling
  • Add demo showcasing slideSize with both regular and virtual slides
  • Improve virtual slides fallback calculation for initial render

🤖 Generated with the help of Claude Code
👷🏻‍♂️ Manual check, testing and restructuring of the code, reduction to the in my opinion the necessary parts, deep understanding of the developer (me) of the functionality touched, especially towards the virtualization

The issue is also mentioned by other people:
#7796

Add slideSize parameter to allow fixed slide dimensions with slidesPerView: 'auto'.
This enables consistent slide sizing across different viewport sizes and works
with both regular and virtual slides.

- Add slideSize parameter to core defaults and types
- Update slide sizing logic in updateSlides to handle slideSize
- Enhance virtual slides to support slideSize with proper resize handling
- Add demo showcasing slideSize with both regular and virtual slides
- Improve virtual slides fallback calculation for initial render

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@nolimits4web
Copy link
Owner

t0ggles-create swiper

@t0ggles
Copy link

t0ggles bot commented Sep 3, 2025

Task nolimits4web/SWIPER-170 was created

t0ggles task SWIPER-170

@t0ggles t0ggles bot added the t0ggles Linked to the t0ggles task label Sep 3, 2025
@t0ggles
Copy link

t0ggles bot commented Sep 11, 2025

Task nolimits4web/SWIPER-170 status changed to Done

@nolimits4web
Copy link
Owner

Hi! Thanks a lot for the PR, but had to refactor it a bit and merge manually as this is a Virtual Slide's feature so moved parameter there with a bit simplified logic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t0ggles Linked to the t0ggles task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants