fix(frontend): add poster not found image to request card and request list item

pull/720/head
sct 4 years ago
parent 0b055458d0
commit ae9a1b3e94

@ -205,7 +205,11 @@ const RequestCard: React.FC<RequestCardProps> = ({ request }) => {
} }
> >
<img <img
src={`//image.tmdb.org/t/p/w600_and_h900_bestv2${title.posterPath}`} src={
title.posterPath
? `//image.tmdb.org/t/p/w600_and_h900_bestv2${title.posterPath}`
: '/images/overseerr_poster_not_found.png'
}
alt="" alt=""
className="w-20 transition duration-300 scale-100 rounded-md shadow-sm cursor-pointer sm:w-28 transform-gpu hover:scale-105 hover:shadow-md" className="w-20 transition duration-300 scale-100 rounded-md shadow-sm cursor-pointer sm:w-28 transform-gpu hover:scale-105 hover:shadow-md"
/> />

@ -141,7 +141,11 @@ const RequestItem: React.FC<RequestItemProps> = ({
> >
<a className="flex-shrink-0 hidden mr-4 sm:block"> <a className="flex-shrink-0 hidden mr-4 sm:block">
<img <img
src={`//image.tmdb.org/t/p/w600_and_h900_bestv2${title.posterPath}`} src={
title.posterPath
? `//image.tmdb.org/t/p/w600_and_h900_bestv2${title.posterPath}`
: '/images/overseerr_poster_not_found.png'
}
alt="" alt=""
className="w-12 transition duration-300 scale-100 rounded-md shadow-sm cursor-pointer transform-gpu hover:scale-105 hover:shadow-md" className="w-12 transition duration-300 scale-100 rounded-md shadow-sm cursor-pointer transform-gpu hover:scale-105 hover:shadow-md"
/> />

Loading…
Cancel
Save