akiran / akiran/react-slick

centerMode not working properly with dynamic widths

Offen
#1,944 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
11.9k
Forks
2.1k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I want the items in the carousel to have the same width when on mobile like this:
https://i.ibb.co/nmJcgmB/Untitled.png

It should change based on how much space is available.

And this is my codesandbox, there is no way I can get something similar to happen. I think it has to do with the width, can another option be added to handle this problem?
https://codesandbox.io/s/elated-hill-ktx5q?resolutionWidth=448&resolutionHeight=675&file=/src/slider.scss:0-7163

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.