Skip to content

fix: carousel loop spacing and editor infinite loop and demo#38

Merged
danish17 merged 5 commits intodevelopfrom
fix/carousel-loop-spacing
Feb 16, 2026
Merged

fix: carousel loop spacing and editor infinite loop and demo#38
danish17 merged 5 commits intodevelopfrom
fix/carousel-loop-spacing

Conversation

@danish17
Copy link
Collaborator

This PR fixes the spacing issues in loop mode where gaps were missing between the last and first slides. It also enables infinite looping in the editor viewport to match frontend behavior.

Changes:

  • Introduced conditional spacing: CSS `gap` for standard mode, margins for loop mode.
  • Fixed hardcoded `loop: false` in the editor viewport component.
  • Added `data-loop` attribute to enable targeted CSS fixes.
  • Improved WP Playground Demo
  • Bumped version to 1.0.1."

Remove hardcoded loop: false in the editor viewport component to respect carousel settings.
Introduce conditional spacing using CSS gap for standard carousels and margins for looping carousels. This ensures consistent gaps when slides wrap around while avoiding extra trailing space in normal mode.
Update version in package.json and plugin header, and add v1.0.1 entries to CHANGELOG.md.
@danish17 danish17 self-assigned this Feb 16, 2026
@danish17 danish17 merged commit 6d76703 into develop Feb 16, 2026
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants

Comments