feat(hero): pick the best Jellyfin artwork for the home hero

Jellyfin stores several images per item. Ask /Items/{id}/Images for their real
sizes and use the biggest wide image (Backdrop, then Thumb) for the 16:9 hero.
Poster-only items are no longer stretched: the poster is blurred into an ambient
background with the sharp poster displayed beside the text. The slide element is
kept mounted across changes so the previous artwork stays until the next loads.
This commit is contained in:
1xDed committed 2026-11-27 09:20:26 +03:00
1 parent 3131c1f905
commit 4c9dd86962
4 files changed
+235 -33

No files matched your search

+34 -1
View File
@@ -57,7 +57,22 @@
object-fit: cover;
width: 100%;
height: 100%;
transition: opacity 0.5s;
// Poster-only item: never stretch/crop a 2:3 poster across 16:9.
// Blur it into an ambient background and show the sharp poster on top.
&.is-poster {
filter: blur(36px) saturate(1.6) brightness(0.65);
transform: scale(1.25);
}
}
&-blurhash {
position: absolute;
inset: 0;
width: 100% !important;
height: 100% !important;
z-index: 0;
filter: blur(30px) saturate(1.4);
}
&-icon-container {
@@ -101,6 +116,20 @@
}
}
&-poster {
position: absolute;
z-index: 3;
right: 7%;
top: 50%;
transform: translateY(-50%);
height: 66%;
max-width: 26%;
object-fit: contain;
border-radius: 14px;
box-shadow: 0 24px 60px rgb(0 0 0 / 0.65), 0 0 0 1px rgb(255 255 255 / 0.08);
pointer-events: none;
}
&-overview {
overflow: hidden;
margin-bottom: 0.5em;
@@ -152,6 +181,10 @@
min-height: 430px;
}
.hero-carousel {
&-poster {
display: none;
}
&-detail {
width: 100%;
padding: 3rem;