Skip to content

Commit 4213459

Browse files
committed
feat: add feed icon display for audio entries without images
1 parent b33c6e9 commit 4213459

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/mobile/src/modules/entry-list/templates/EntryNormalItem.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ const ThumbnailImage = ({
145145
entry: EntryModel
146146
}) => {
147147
const feed = useFeed(entry?.feedId as string)
148-
149148
const thumbnailRatio = useUISettingKey("thumbnailRatio")
150149

151150
const coverImage = entry?.media?.[0]
@@ -186,6 +185,9 @@ const ThumbnailImage = ({
186185
/>
187186
))}
188187

188+
{/* Show feed icon if no image but audio is present */}
189+
{audio && !image && <FeedIcon feed={feed} size={96} />}
190+
189191
{audio && (
190192
<NativePressable
191193
className="absolute inset-0 flex items-center justify-center"

0 commit comments

Comments
 (0)