File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ export default function Figure({
17
17
return (
18
18
< >
19
19
< figure className = "mx-0 my-8 flex flex-col items-center [&_img]:my-0" >
20
- < div className = "inline-block" >
21
- { < div > { childExists ? newChild : children } </ div > }
22
- < figcaption className = "text-sm mt-0 text-gray-600 italic flex justify-center" >
23
- < div > { caption } </ div >
24
- </ figcaption >
20
+ < div className = "max-w-full overflow-x-auto" >
21
+ { childExists ? newChild : children }
25
22
</ div >
23
+ < figcaption className = "text-sm mt-0 text-gray-600 italic flex justify-center" >
24
+ < div > { caption } </ div >
25
+ </ figcaption >
26
26
</ figure >
27
27
</ >
28
28
) ;
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ const Carousel = React.forwardRef<
62
62
{
63
63
...opts ,
64
64
axis : orientation === "horizontal" ? "x" : "y" ,
65
+ loop : true , // Set loop to true by default
65
66
} ,
66
67
plugins
67
68
) ;
@@ -243,7 +244,7 @@ const CarouselPrevious = React.forwardRef<
243
244
variant = { variant }
244
245
size = { size }
245
246
className = { cn (
246
- "absolute h-8 w-8 rounded-full hidden md:inline-flex" ,
247
+ "absolute h-full w-8 border-none shadow-none hidden md:inline-flex" ,
247
248
orientation === "horizontal"
248
249
? "-left-12 top-1/2 -translate-y-1/2"
249
250
: "-top-12 left-1/2 -translate-x-1/2 rotate-90" ,
@@ -272,7 +273,7 @@ const CarouselNext = React.forwardRef<
272
273
variant = { variant }
273
274
size = { size }
274
275
className = { cn (
275
- "absolute h-8 w-8 rounded-full hidden md:inline-flex" ,
276
+ "absolute h-full w-8 hidden border-none shadow-none md:inline-flex" ,
276
277
orientation === "horizontal"
277
278
? "-right-12 top-1/2 -translate-y-1/2"
278
279
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90" ,
You can’t perform that action at this time.
0 commit comments