Skip to content

Commit 2d21c0f

Browse files
fix(oss-friends): simplify image rendering with default fallback
1 parent f39525a commit 2d21c0f

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

apps/web/src/routes/_view/oss-friends.tsx

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,13 @@ function FriendsSection() {
110110
])}
111111
>
112112
<div className="aspect-40/21 bg-neutral-100 overflow-hidden">
113-
{friend.image ? (
114-
<Image
115-
src={friend.image}
116-
alt={friend.name}
117-
className="w-full h-full group-hover:scale-105 transition-transform duration-300"
118-
objectFit="cover"
119-
layout="fullWidth"
120-
/>
121-
) : (
122-
<div className="w-full h-full flex items-center justify-center">
123-
<Icon
124-
icon="mdi:open-source-initiative"
125-
className="text-4xl text-neutral-300"
126-
/>
127-
</div>
128-
)}
113+
<Image
114+
src={friend.image || "/api/images/hyprnote/default-cover.jpg"}
115+
alt={friend.name}
116+
className="w-full h-full group-hover:scale-105 transition-transform duration-300"
117+
objectFit="cover"
118+
layout="fullWidth"
119+
/>
129120
</div>
130121
<div className="p-4 flex-1 flex flex-col">
131122
<div className="flex items-start justify-between gap-2 mb-2">

0 commit comments

Comments
 (0)