Add better image styles

This commit is contained in:
2025-06-29 01:56:19 +02:00
parent ee79f75668
commit ac3b19a1f2
16 changed files with 378 additions and 104 deletions

View File

@ -1,4 +1,5 @@
import { Image } from "@/generated/prisma";
import clsx from "clsx";
import NextImage from "next/image";
import Link from "next/link";
@ -17,7 +18,10 @@ export default function ImageList({ images, gallerySlug, albumSlug }: { images:
src={`/api/image/thumbnails/${img.fileKey}.webp`}
alt={img.imageName}
fill
className="object-cover"
className={clsx(
" object-cover",
img.nsfw && "blur-md scale-105"
)}
/>
) : (
<div className="flex items-center justify-center h-full text-muted-foreground text-sm">