fix: artwork fallbacks everywhere and hero layout
- resolveItemImage(): try the item's own images, then series/album/parent artwork - hero sidebar tickers fall back from Thumb to Backdrop/Primary instead of an icon - hero background falls back to the poster when no backdrop exists - stop stacked slides when the carousel advances (drop leaking AnimatePresence) - keep the hero title/logo inside the slide on narrow windows - sensible slides-per-view on tablet/mobile widths
This commit is contained in:
1 parent
1c499f42ec
commit
5a9b3ad273
7 files changed
+197
-34
No files matched your search
@@ -95,6 +95,9 @@
|
||||
object-fit: contain;
|
||||
object-position: left bottom;
|
||||
filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
|
||||
// The logo is an <img> inside a line-clamped heading; as an inline image
|
||||
// its box was clipped by the heading's line box (cut-off titles).
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,10 +147,15 @@
|
||||
@media (max-width: 1140px) {
|
||||
.carousel {
|
||||
height: 60vh !important;
|
||||
// Never squeeze the hero below the height its own content needs,
|
||||
// otherwise the title/logo is clipped by the slide's overflow.
|
||||
min-height: 430px;
|
||||
}
|
||||
.hero-carousel {
|
||||
&-detail {
|
||||
width: 100%;
|
||||
padding: 3rem;
|
||||
padding-bottom: 4rem;
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
|
||||
}
|
||||
|
||||
@@ -156,6 +164,11 @@
|
||||
}
|
||||
|
||||
&-text {
|
||||
// Narrow layouts: the hero column is ~400px, a 3.75rem title wraps
|
||||
// to two lines and overflows the slide, clipping the top line.
|
||||
font-size: 2.5rem !important;
|
||||
line-height: 1.15 !important;
|
||||
|
||||
&-logo {
|
||||
max-width: 60vw;
|
||||
max-height: 10vh;
|
||||
|
||||
Reference in new issue
Block a user