fix: carousel height
This commit is contained in:
parent
70f4950363
commit
08636806a5
1 changed files with 1 additions and 1 deletions
|
|
@ -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) => (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue