diff --git a/astro/src/components/web/LastAlbums.astro b/astro/src/components/web/LastAlbums.astro index bc7a74b..e03b5f0 100644 --- a/astro/src/components/web/LastAlbums.astro +++ b/astro/src/components/web/LastAlbums.astro @@ -2,7 +2,7 @@ import { getLastAlbums } from "@/content/photos/albums"; import { getSettings } from "@/content/settings/settings"; import CalendarIcon from "@/icons/CalendarIcon.astro"; -import { getImageUrl } from "@/lib/images"; +import { getImageSize, getImageUrl } from "@/lib/images"; import { getAlbumRoute } from "@/lib/routing"; import { Image } from "astro:assets"; @@ -44,42 +44,51 @@ const size = calculateSizeClasses(albums.amount, lastAlbums.length); { lastAlbums.length >= 4 ? (