diff --git a/packages/client/src/components/gallery/GalleryCard.tsx b/packages/client/src/components/gallery/GalleryCard.tsx index ea49995..da3da6f 100644 --- a/packages/client/src/components/gallery/GalleryCard.tsx +++ b/packages/client/src/components/gallery/GalleryCard.tsx @@ -5,6 +5,7 @@ import { Fragment, useLayoutEffect, useRef, useState } from "react"; import { LazyImage } from "./LazyImage.tsx"; import StyledLink from "./StyledLink.tsx"; import React from "react"; +import { Skeleton } from "../ui/skeleton.tsx"; function clipTagsWhenOverflow(tags: string[], limit: number) { let l = 0; @@ -87,4 +88,27 @@ function GalleryCardImpl({ ; } +export function GalleryCardSkeleton({ + tagCount = 20 +}: { + tagCount?: number; +}) { + return + +
+ + + + + +
    + {Array.from({ length: tagCount }).map((_, i) => )} +
+
+
+
+} + export const GalleryCard = React.memo(GalleryCardImpl); \ No newline at end of file diff --git a/packages/client/src/components/layout/nav.tsx b/packages/client/src/components/layout/nav.tsx index bc7b750..5ea962f 100644 --- a/packages/client/src/components/layout/nav.tsx +++ b/packages/client/src/components/layout/nav.tsx @@ -63,7 +63,7 @@ export function NavList() { const loginInfo = useLogin(); const navItems = useNavItems(); - return