Skip to content

Commit

Permalink
fix(ui): allow thetvdb images for unmatched series (Fallenbagel#1105)
Browse files Browse the repository at this point in the history
When a series has no equivalent in TheTVDB used by Sonarr, a popup is displayed to select the series
on TheTVDB. The images in this popup come from artworks.thetvdb.com, which was not an authorized
domain for Next.js images.

fix Fallenbagel#1075
  • Loading branch information
gauthier-th authored and thibodelanghe committed Dec 18, 2024
1 parent 0d86504 commit 3d684d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = {
remotePatterns: [
{ hostname: 'gravatar.com' },
{ hostname: 'image.tmdb.org' },
{ hostname: 'artworks.thetvdb.com' },
],
},
webpack(config) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/RequestModal/SearchByNameModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ const SearchByNameModal = ({
tvdbId === item.tvdbId ? 'ring ring-indigo-500' : ''
} `}
>
<div className="flex w-24 flex-none items-center space-x-4">
<div className="relative flex w-24 flex-none items-center space-x-4 self-stretch">
<Image
src={
item.remotePoster ??
'/images/overseerr_poster_not_found.png'
}
alt={item.title}
className="h-100 w-auto rounded-md"
className="w-100 h-auto rounded-md"
fill
/>
</div>
Expand Down

0 comments on commit 3d684d2

Please sign in to comment.