only show PosterImage in media pages if we have a extPosterPath

This commit is contained in:
IRHM
2026-07-29 23:15:31 +01:00
committed by momi
parent 40b54c1065
commit 5abbb47fbf
5 changed files with 23 additions and 14 deletions
+1
View File
@@ -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
+7 -5
View File
@@ -96,11 +96,13 @@
<div class="content">
<div class="details-wrap">
<div class="details-container">
<PosterImage
src={"https://images.igdb.com/igdb/image/upload/t_cover_big/" +
game.extPosterPath +
".jpg"}
/>
{#if game.extPosterPath}
<PosterImage
src={"https://images.igdb.com/igdb/image/upload/t_cover_big/" +
game.extPosterPath +
".jpg"}
/>
{/if}
<div class="details">
<Title
+5 -3
View File
@@ -131,9 +131,11 @@
<div class="content">
<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
+5 -3
View File
@@ -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">
+5 -3
View File
@@ -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