@@ -135,7 +135,7 @@ function CarouselContent({ className, ...props }: React.ComponentProps<"div">) {
135135 return (
136136 < div ref = { carouselRef } className = "overflow-hidden" data-slot = "carousel-content" >
137137 < div
138- className = { cn ( "flex" , orientation === "horizontal" ? "-ml -4" : "-mt-4 flex-col" , className ) }
138+ className = { cn ( "flex" , orientation === "horizontal" ? "-ms -4" : "-mt-4 flex-col" , className ) }
139139 { ...props }
140140 />
141141 </ div >
@@ -152,7 +152,7 @@ function CarouselItem({ className, ...props }: React.ComponentProps<"div">) {
152152 data-slot = "carousel-item"
153153 className = { cn (
154154 "min-w-0 shrink-0 grow-0 basis-full" ,
155- orientation === "horizontal" ? "pl -4" : "pt-4" ,
155+ orientation === "horizontal" ? "ps -4" : "pt-4" ,
156156 className ,
157157 ) }
158158 { ...props }
@@ -176,8 +176,8 @@ function CarouselPrevious({
176176 className = { cn (
177177 "absolute touch-manipulation rounded-full" ,
178178 orientation === "horizontal"
179- ? "top-1/2 -left-12 -translate-y-1/2"
180- : "- top-12 left- 1/2 - translate-x-1/2 rotate-90 " ,
179+ ? "-start-12 top-1/2 -translate-y-1/2"
180+ : "start-1/2 - top-12 -translate-x- 1/2 rotate-90 rtl: translate-x-1/2" ,
181181 className ,
182182 ) }
183183 disabled = { ! canScrollPrev }
@@ -206,8 +206,8 @@ function CarouselNext({
206206 className = { cn (
207207 "absolute touch-manipulation rounded-full" ,
208208 orientation === "horizontal"
209- ? "top-1/2 -right-12 -translate-y-1/2"
210- : "- bottom-12 left- 1/2 - translate-x-1/2 rotate-90 " ,
209+ ? "-end-12 top-1/2 -translate-y-1/2"
210+ : "start-1/2 - bottom-12 -translate-x- 1/2 rotate-90 rtl: translate-x-1/2" ,
211211 className ,
212212 ) }
213213 disabled = { ! canScrollNext }
0 commit comments