Skip to content

Commit 024ef3c

Browse files
committed
Update search results image component
1 parent e656c5c commit 024ef3c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

components/search-results-image.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)