mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
fix(frontend): add poster not found image to request card and request list item
This commit is contained in:
@@ -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"
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user