fix(marketplace): Fix margin between arrows and carousel (#9745)

- fix #8958 

Currently, the arrow button and carousel have a 16px margin, and the
button is placed 12px below the top of the container. This makes the
spacing appear to be 28px. Therefore, place the button and indicator at
the top of the container.
This commit is contained in:
Abhimanyu Yadav
2025-04-03 21:31:27 +05:30
committed by GitHub
parent adb3263211
commit 0fc423fd55

View File

@@ -213,7 +213,7 @@ const CarouselPrevious = React.forwardRef<
className={cn(
"absolute h-[52px] w-[52px] rounded-full",
orientation === "horizontal"
? "-bottom-20 right-24 -translate-y-1/2"
? "right-24 top-0"
: "-top-12 left-1/2 -translate-x-1/2 rotate-90",
className,
)}
@@ -259,7 +259,7 @@ const CarouselNext = React.forwardRef<
className={cn(
"absolute h-[52px] w-[52px] rounded-full",
orientation === "horizontal"
? "-bottom-20 right-4 -translate-y-1/2"
? "right-4 top-0"
: "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
className,
)}
@@ -302,7 +302,7 @@ const CarouselIndicator = React.forwardRef<
return (
<div
ref={ref}
className={cn("relative top-10 flex h-3 items-center gap-2", className)}
className={cn("relative top-7 flex h-3 items-center gap-2", className)}
{...props}
>
{scrollSnaps.map((_, index) => (