File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -82,21 +82,24 @@ export const SearchResultsImageSection: React.FC<
8282 </ Card >
8383 </ div >
8484 </ DialogTrigger >
85- < DialogContent className = "sm:max-w-3xl" >
85+ < DialogContent className = "sm:max-w-3xl max-h-[80vh] overflow-auto " >
8686 < DialogHeader >
8787 < DialogTitle > Search Images</ DialogTitle >
8888 < DialogDescription className = "text-sm" > { query } </ DialogDescription >
8989 </ DialogHeader >
9090 < div className = "py-4" >
91- < Carousel setApi = { setApi } className = "w-full bg-muted" >
91+ < Carousel
92+ setApi = { setApi }
93+ className = "w-full bg-muted max-h-[60vh]"
94+ >
9295 < CarouselContent >
9396 { images . map ( ( img , idx ) => (
9497 < CarouselItem key = { idx } >
9598 < div className = "p-1 flex items-center justify-center h-full" >
9699 < img
97100 src = { img }
98101 alt = { `Image ${ idx + 1 } ` }
99- className = "h-auto w-full object-contain"
102+ className = "h-auto w-full object-contain max-h-[60vh] "
100103 />
101104 </ div >
102105 </ CarouselItem >
You can’t perform that action at this time.
0 commit comments