diff --git a/CHANGELOG.md b/CHANGELOG.md index c8e09998..b18da4c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ These changes are awaiting release: - Login: Display error when request to get available auth providers fails. - Removed some legacy code that still thought there was a `store.watchedList`. - DropDown: Fix whole page scrolling when pressing letter to scroll to first relevant dropdown item (only the dropdown list should scroll now, which is less jarring). +- Media pages: Only show PosterImage if we have a poster path. ## Maintenance diff --git a/src/routes/(app)/game/[id]/+page.svelte b/src/routes/(app)/game/[id]/+page.svelte index 4fec673a..f51bf6fd 100644 --- a/src/routes/(app)/game/[id]/+page.svelte +++ b/src/routes/(app)/game/[id]/+page.svelte @@ -96,11 +96,13 @@
- + {#if game.extPosterPath} + + {/if}
<div class="details-wrap"> <div class="details-container"> - <PosterImage - src={"https://image.tmdb.org/t/p/w500" + movie.extPosterPath} - /> + {#if movie.extPosterPath} + <PosterImage + src={"https://image.tmdb.org/t/p/w500" + movie.extPosterPath} + /> + {/if} <div class="details"> <Title diff --git a/src/routes/(app)/person/[id]/+page.svelte b/src/routes/(app)/person/[id]/+page.svelte index 272b13d9..ae9ccc12 100644 --- a/src/routes/(app)/person/[id]/+page.svelte +++ b/src/routes/(app)/person/[id]/+page.svelte @@ -132,9 +132,11 @@ <div class="content"> <div class="details-wrap"> <div class="details-container"> - <PosterImage - src={"https://image.tmdb.org/t/p/w500" + person.extPosterPath} - /> + {#if person.extPosterPath} + <PosterImage + src={"https://image.tmdb.org/t/p/w500" + person.extPosterPath} + /> + {/if} <div class="details"> <span class="title-container"> diff --git a/src/routes/(app)/tv/[id]/+page.svelte b/src/routes/(app)/tv/[id]/+page.svelte index 1d9da16c..dbdd7f44 100644 --- a/src/routes/(app)/tv/[id]/+page.svelte +++ b/src/routes/(app)/tv/[id]/+page.svelte @@ -155,9 +155,11 @@ <div class="content"> <div class="details-wrap"> <div class="details-container"> - <PosterImage - src={"https://image.tmdb.org/t/p/w500" + show.extPosterPath} - /> + {#if show.extPosterPath} + <PosterImage + src={"https://image.tmdb.org/t/p/w500" + show.extPosterPath} + /> + {/if} <div class="details"> <Title