Skip to content

Commit d695547

Browse files
fix: show static.webp fallback for mobile features carousel (#2046)
Features without images (Coming Soon features) now display the static.webp fallback in mobile view, matching the desktop grid behavior. Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 716b5f9 commit d695547

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/web/src/routes/_view/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1219,12 +1219,18 @@ function FeaturesMobileCarousel({
12191219
<div key={index} className="w-full shrink-0 snap-center">
12201220
<div className="border-y border-neutral-100 overflow-hidden flex flex-col">
12211221
<div className="aspect-video border-b border-neutral-100 overflow-hidden">
1222-
{feature.image && (
1222+
{feature.image ? (
12231223
<Image
12241224
src={feature.image}
12251225
alt={`${feature.title} feature`}
12261226
className="w-full h-full object-contain"
12271227
/>
1228+
) : (
1229+
<img
1230+
src="/api/images/hyprnote/static.webp"
1231+
alt={`${feature.title} feature`}
1232+
className="w-full h-full object-cover"
1233+
/>
12281234
)}
12291235
</div>
12301236
<div className="p-6">

0 commit comments

Comments
 (0)