fix: feed icon in player cover

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-09-03 23:15:33 +08:00
parent 860562d1a4
commit c6a8613b29
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
4 changed files with 11 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export const FeedFoundCanBeFollowErrorFallback: FC<AppErrorFallbackProps> = ({
return (
<div className="flex w-full flex-col items-center justify-center rounded-md bg-theme-modal-background-opaque p-2">
<div className="center m-auto flex max-w-prose flex-col gap-4 text-center">
<FeedIcon feed={feed} size={60} />
<FeedIcon feed={feed} size={60} className="rounded" />
<div className="text-lg font-bold">{feed.title}</div>

View File

@ -218,6 +218,13 @@ export function FeedIcon({
>
{ImageElement}
</AvatarImage>
<AvatarFallback>
<div
className={cn("mr-2", className)}
style={sizeStyle}
data-placeholder={finalSrc}
/>
</AvatarFallback>
</Avatar>
)
}

View File

@ -139,10 +139,11 @@ export function ListItem({
)}
feedIcon={(
<FeedIcon
fallback={false}
feed={feed}
entry={entry.entries}
size={80}
className="m-0"
className="m-0 rounded"
/>
)}
/>

View File

@ -116,6 +116,7 @@ const CornerPlayerImpl = () => {
feed={feed}
entry={entry.entries}
size={58}
fallback={false}
className="m-0 size-[3.625rem] rounded-none"
/>
<div className="center absolute inset-0 w-full opacity-0 transition-all duration-200 ease-in-out group-hover:opacity-100">