diff --git a/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx b/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx index c8ca5809a2..ffa69ce7b4 100644 --- a/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx +++ b/apps/renderer/src/modules/entry-column/templates/list-item-template.tsx @@ -1,6 +1,6 @@ import { useMobile } from "@follow/components/hooks/useMobile.js" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/index.js" -import { cn, isSafari } from "@follow/utils/utils" +import { clsx, cn, isSafari } from "@follow/utils/utils" import { AudioPlayer, useAudioPlayerAtomSelector } from "~/atoms/player" import { useRealInWideMode, useUISettingKey } from "~/atoms/settings/ui" @@ -63,6 +63,8 @@ export function ListItem({ const related = feed || inbox + const hasAudio = entry.entries?.attachments?.[0].url + return (
- {withAudio && entry.entries?.attachments?.[0].url && ( + {withAudio && !!hasAudio && ( + } feed={feed || inbox} entry={entry.entries} size={settingWideMode ? 65 : 80} diff --git a/apps/renderer/src/modules/feed/feed-icon.tsx b/apps/renderer/src/modules/feed/feed-icon.tsx index c04a431212..f66ed221fc 100644 --- a/apps/renderer/src/modules/feed/feed-icon.tsx +++ b/apps/renderer/src/modules/feed/feed-icon.tsx @@ -85,6 +85,7 @@ export function FeedIcon({ className, size = 20, fallback = true, + fallbackElement, siteUrl, useMedia, disableFadeIn, @@ -100,6 +101,7 @@ export function FeedIcon({ * Image loading error fallback to site icon */ fallback?: boolean + fallbackElement?: ReactNode useMedia?: boolean disableFadeIn?: boolean @@ -251,7 +253,7 @@ export function FeedIcon({ {ImageElement} - {fallbackIcon} + {fallbackElement || fallbackIcon} )