diff --git a/src/theme/carousel.ts b/src/theme/carousel.ts index c3caff47..2e42c676 100644 --- a/src/theme/carousel.ts +++ b/src/theme/carousel.ts @@ -18,14 +18,14 @@ export default (options: Required) => ({ vertical: { container: 'flex-col -mt-4', item: 'pt-4', - prev: '-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90', - next: '-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90' + prev: 'top-4 sm:-top-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90', + next: 'bottom-4 sm:-bottom-12 left-1/2 -translate-x-1/2 rotate-90 rtl:-rotate-90' }, horizontal: { container: 'flex-row -ms-4', item: 'ps-4', - prev: '-start-12 top-1/2 -translate-y-1/2', - next: '-end-12 top-1/2 -translate-y-1/2' + prev: 'start-4 sm:-start-12 top-1/2 -translate-y-1/2', + next: 'end-4 sm:-end-12 top-1/2 -translate-y-1/2' } }, active: { diff --git a/test/components/__snapshots__/Carousel-vue.spec.ts.snap b/test/components/__snapshots__/Carousel-vue.spec.ts.snap index 2978c401..56a3bfa9 100644 --- a/test/components/__snapshots__/Carousel-vue.spec.ts.snap +++ b/test/components/__snapshots__/Carousel-vue.spec.ts.snap @@ -13,10 +13,10 @@ exports[`Carousel > renders with arrows correctly 1`] = `
-
@@ -105,10 +105,10 @@ exports[`Carousel > renders with next correctly 1`] = `
-
@@ -130,10 +130,10 @@ exports[`Carousel > renders with nextIcon correctly 1`] = `
-
@@ -171,10 +171,10 @@ exports[`Carousel > renders with prev correctly 1`] = `
-
@@ -196,10 +196,10 @@ exports[`Carousel > renders with prevIcon correctly 1`] = `
-
diff --git a/test/components/__snapshots__/Carousel.spec.ts.snap b/test/components/__snapshots__/Carousel.spec.ts.snap index 5ef2bcc2..d7e6e2b9 100644 --- a/test/components/__snapshots__/Carousel.spec.ts.snap +++ b/test/components/__snapshots__/Carousel.spec.ts.snap @@ -13,10 +13,10 @@ exports[`Carousel > renders with arrows correctly 1`] = `
-
@@ -105,10 +105,10 @@ exports[`Carousel > renders with next correctly 1`] = `
-
@@ -130,10 +130,10 @@ exports[`Carousel > renders with nextIcon correctly 1`] = `
-
@@ -171,10 +171,10 @@ exports[`Carousel > renders with prev correctly 1`] = `
-
@@ -196,10 +196,10 @@ exports[`Carousel > renders with prevIcon correctly 1`] = `
-