aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/components
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/components')
-rw-r--r--apps/mobile/components/bookmarks/BookmarkCard.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/mobile/components/bookmarks/BookmarkCard.tsx b/apps/mobile/components/bookmarks/BookmarkCard.tsx
index ce294a6f..3cbd064e 100644
--- a/apps/mobile/components/bookmarks/BookmarkCard.tsx
+++ b/apps/mobile/components/bookmarks/BookmarkCard.tsx
@@ -1,3 +1,4 @@
+import React from "react";
import {
ActivityIndicator,
Alert,
@@ -300,11 +301,15 @@ function AssetCard({
}
const title = bookmark.title ?? bookmark.content.fileName;
+ const assetImage =
+ bookmark.assets.find((r) => r.assetType == "assetScreenshot")?.id ??
+ bookmark.content.assetId;
+
return (
<View className="flex gap-2">
<Pressable onPress={onOpenBookmark}>
<BookmarkAssetImage
- assetId={bookmark.content.assetId}
+ assetId={assetImage}
className="h-56 min-h-56 w-full object-cover"
/>
</Pressable>