fix: gallery
This commit is contained in:
@ -26,7 +26,7 @@ export const SearchCard = (props: { item: UserImage }) => {
|
|||||||
return (
|
return (
|
||||||
<A
|
<A
|
||||||
href={`/entity/${props.item.data.ID}`}
|
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} />
|
<UnwrappedSearchCard item={props.item} />
|
||||||
</A>
|
</A>
|
||||||
|
@ -24,8 +24,10 @@ const EntityGallery: Component<{
|
|||||||
images().filter((i) => i.type === props.entity);
|
images().filter((i) => i.type === props.entity);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="w-full flex flex-col gap-4 capitalize bg-white container p-4">
|
<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</h2>
|
<h2 class="font-bold text-xl">
|
||||||
|
{props.entity}s ({filteredCategories().length})
|
||||||
|
</h2>
|
||||||
<div class="grid grid-cols-3 gap-4">
|
<div class="grid grid-cols-3 gap-4">
|
||||||
<For each={filteredCategories()}>
|
<For each={filteredCategories()}>
|
||||||
{(category) => <SearchCard item={category} />}
|
{(category) => <SearchCard item={category} />}
|
||||||
|
Reference in New Issue
Block a user