add more rando

This commit is contained in:
2025-07-13 00:27:50 +02:00
parent 1d4f167cb9
commit 297848a83a
4 changed files with 7 additions and 7 deletions

View File

@ -56,7 +56,7 @@ export function ImageCard(props: ImageCardProps) {
return (
<div
className={cn(
"overflow-hidden rounded-md",
"overflow-hidden",
isSquare && "aspect-square shadow-sm hover:scale-[1.01] transition-transform",
isMosaic && "w-full h-full"
)}

View File

@ -33,14 +33,14 @@ export function JustifiedGallery({ images, rowHeight = 200, gap = 4 }: Props) {
}, [images, containerWidth, rowHeight, gap]);
return (
<div ref={containerRef} className="w-full">
<div ref={containerRef} className="w-full flex flex-col" style={{ rowGap: `${gap}px` }}>
{rows.length === 0 && (
<p className="text-muted-foreground text-center py-20">No images to display</p>
)}
{rows.map((row, i) => (
<div
key={i}
className="flex mb-4" // Vertical gap between rows
className="flex" // Vertical gap between rows
style={{ columnGap: `${gap}px` }} // Horizontal gap between images
>
{row.map((img) => (