Skip to content

Commit

Permalink
fix(unlock-app): if no cover image use the main image as default
Browse files Browse the repository at this point in the history
julien51 committed Apr 4, 2024
1 parent ab95fc8 commit 14d86bb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions unlock-app/src/components/content/event/EventDetails.tsx
Original file line number Diff line number Diff line change
@@ -238,13 +238,11 @@ Powered by Unlock Protocol`}

<div className="relative">
<div className="w-full hidden sm:block sm:overflow-hidden bg-slate-200 max-h-80 sm:rounded-3xl">
{coverImage && (
<img
className="object-cover w-full h-full"
src={coverImage}
alt="Cover image"
/>
)}
<img
className="object-cover w-full h-full"
src={coverImage || event.image}
alt="Cover image"
/>
</div>

<CoverImageDrawer

0 comments on commit 14d86bb

Please sign in to comment.