Skip to content

Commit 482369b

Browse files
committed
fix(mobile): fix vertical image rendering in bookmark info
1 parent 2b2771a commit 482369b

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎apps/mobile/components/bookmarks/BookmarkAssetView.tsx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ export default function BookmarkAssetView({
4545
images={[assetSource]}
4646
/>
4747

48-
<Pressable onPress={() => setImageZoom(true)}>
48+
<Pressable className="flex-1" onPress={() => setImageZoom(true)}>
4949
<BookmarkAssetImage
5050
assetId={bookmark.content.assetId}
51-
className="h-56 min-h-56 w-full"
51+
className="h-full w-full"
52+
contentFit="contain"
5253
/>
5354
</Pressable>
5455
</View>

‎apps/mobile/components/bookmarks/BookmarkCard.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ function useAssetCardContext({
185185
media: (
186186
<BookmarkAssetImage
187187
assetId={assetImage}
188-
className="h-56 min-h-56 w-full"
188+
className="h-56 min-h-56 w-full bg-muted"
189+
contentFit="contain"
189190
/>
190191
),
191192
compactMedia: (

0 commit comments

Comments
 (0)