fix: carousel height

This commit is contained in:
trafficlunar 2025-04-05 21:57:11 +01:00
parent 70f4950363
commit 08636806a5

View file

@ -25,7 +25,7 @@ export default function Carousel({ images, className }: Props) {
const scrollNext = useCallback(() => emblaApi && emblaApi.scrollNext(), [emblaApi]); const scrollNext = useCallback(() => emblaApi && emblaApi.scrollNext(), [emblaApi]);
return ( return (
<div className="relative max-w-lg"> <div className="relative max-w-lg h-fit">
<div className={`overflow-hidden rounded-xl bg-zinc-300 border-2 border-zinc-300 ${className}`} ref={emblaRef}> <div className={`overflow-hidden rounded-xl bg-zinc-300 border-2 border-zinc-300 ${className}`} ref={emblaRef}>
<div className="flex"> <div className="flex">
{images.map((src, index) => ( {images.map((src, index) => (