Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

fix(mobile): fix taglist skeleton

Mohamed Bassem8d9a01543de8
diff --git a/apps/mobile/components/bookmarks/card/TagList.tsx b/apps/mobile/components/bookmarks/card/TagList.tsx
index e9a192e5..1e35e54f 100644
--- a/apps/mobile/components/bookmarks/card/TagList.tsx
+++ b/apps/mobile/components/bookmarks/card/TagList.tsx
@@ -7,18 +7,21 @@ import { isBookmarkStillTagging } from "@karakeep/shared/utils/bookmarkUtils";
import { Skeleton } from "../../ui/Skeleton";
import TagPill from "../TagPill";
+function TagListSkeleton() {
+ return (
+ <View className="w-full">
+ <Skeleton className="h-[18px] w-full rounded-full" />
+ </View>
+ );
+}
+
export default function TagList({ bookmark }: { bookmark: ZBookmark }) {
const tags = bookmark.tags;
const { data: currentUser } = useWhoAmI();
const isOwner = currentUser?.id === bookmark.userId;
if (isBookmarkStillTagging(bookmark)) {
- return (
- <>
- <Skeleton className="h-4 w-full" />
- <Skeleton className="h-4 w-full" />
- </>
- );
+ return <TagListSkeleton />;
}
return (