From 33e46b448d342e4d47cabf0755305e6596ef72ed Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Wed, 14 Jan 2026 16:07:29 +0100 Subject: [PATCH] Match gallery preview filters and tiles to gallery --- .../js/guest/components/GalleryPreview.tsx | 114 ++++++++---------- 1 file changed, 53 insertions(+), 61 deletions(-) diff --git a/resources/js/guest/components/GalleryPreview.tsx b/resources/js/guest/components/GalleryPreview.tsx index 3e0ae9d..926f437 100644 --- a/resources/js/guest/components/GalleryPreview.tsx +++ b/resources/js/guest/components/GalleryPreview.tsx @@ -111,32 +111,32 @@ export default function GalleryPreview({ token }: Props) { -
- {filters.map((filter) => { - const isActive = mode === filter.value; +
+
+ {filters.map((filter, index) => { + const isActive = mode === filter.value; - return ( - - ); - })} + return ( +
+ + {index < filters.length - 1 && ( + + )} +
+ ); + })} +
{loading &&

Lädt…

} @@ -147,43 +147,35 @@ export default function GalleryPreview({ token }: Props) {
)} -
- {items.map((p: PreviewPhoto) => ( - - {p.title -
-
-

- {p.title || getPhotoTitle(p)} -

-
- - {p.likes_count ?? 0} +
+ {items.map((p: PreviewPhoto) => ( + +
+ {p.title +
-
- - ))} -
+
+

+ {p.title || getPhotoTitle(p)} +

+
+ + {p.likes_count ?? 0} +
+
+ + ))} +

Lust auf mehr?{' '}