fix: gallery

This commit is contained in:
2025-07-18 16:02:26 +01:00
parent bb3ae507ea
commit 75b2cc53a4
2 changed files with 5 additions and 3 deletions

View File

@ -26,7 +26,7 @@ export const SearchCard = (props: { item: UserImage }) => {
return (
<A
href={`/entity/${props.item.data.ID}`}
class="h-[144px] border relative col-span-3 border-neutral-200 cursor-pointer overflow-hidden rounded-xl"
class="h-[144px] border relative border-neutral-200 cursor-pointer overflow-hidden rounded-xl"
>
<UnwrappedSearchCard item={props.item} />
</A>

View File

@ -24,8 +24,10 @@ const EntityGallery: Component<{
images().filter((i) => i.type === props.entity);
return (
<div class="w-full flex flex-col gap-4 capitalize bg-white container p-4">
<h2 class="font-bold text-xl">{props.entity}s</h2>
<div class="w-full flex flex-col gap-4 capitalize bg-white rounded-xl p-4">
<h2 class="font-bold text-xl">
{props.entity}s ({filteredCategories().length})
</h2>
<div class="grid grid-cols-3 gap-4">
<For each={filteredCategories()}>
{(category) => <SearchCard item={category} />}