Skip to content

slider-item-show2-sm is broken if you embed swiffy from CDN, but not in the main branch? #105

@rogierlegit

Description

@rogierlegit

Describe the bug
If you load the swiffy-slider.css from the CDN, it has this CSS:
.swiffy-slider .slider-item-show2-sm { --swiffy-slider-item-count: 2; }
But it should be without the space between it or without the .swiffy-slider . If you look in the main branch both the src and dist versions have it right. So apparently the version supplied via the CDN is outdated?

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Copy the suggested stylesheet and javascript
  3. Embed a swiffy-slider on your site with slider-item-show2-sm in it.
  4. View on mobile or in a rendered version and you note there's just one slide shown.

Expected behavior
Two slides are shown on mobile.

Screenshots
N/A/

Desktop (please complete the following information):

  • OS: All
  • Browser All
  • Version All

Smartphone (please complete the following information):

  • Device: All
  • OS: All
  • Browser: All
  • Version: All

Additional context
This one has been bugging me for ages :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions