Skip to content

Commit

Permalink
fix(esl-carousel): make animated carousel area equal to the content w…
Browse files Browse the repository at this point in the history
…ithout padding
  • Loading branch information
abarmina committed Jul 10, 2024
1 parent 3b46eb2 commit 1c1f6d8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion site/views/examples/carousel/vertical.sample.njk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Vertical Carousel (Single)
order: 4
order: 5
tags: carousel-sample
---

Expand Down
5 changes: 5 additions & 0 deletions src/modules/esl-carousel/core/esl-carousel.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ esl-carousel {
cursor: grabbing;
}

&[animating] {
padding-inline: 0;
margin-inline: 0;
}

&[dragging] [esl-carousel-slides],
&[animating] [esl-carousel-slides] {
touch-action: none;
Expand Down

0 comments on commit 1c1f6d8

Please sign in to comment.