fix: series page z issue, episode page details

This commit is contained in:
Aleksi Lassila
2025-02-19 05:00:22 +02:00
parent 536a2aabda
commit 389b568922
2 changed files with 11 additions and 1 deletions

View File

@@ -41,6 +41,16 @@
if (episode?.runtime) {
titleProperties.push({ label: `${episode.runtime} Minutes` });
}
if (episode?.air_date) {
titleProperties.push({
label: `Aired on ${new Date(episode.air_date).toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric'
})}`
});
}
});
onDestroy(() => {

View File

@@ -183,7 +183,7 @@
</Container>
</HeroCarousel>
</Container>
<div style={$visibleStyle}>
<div class="relative z-10" style={$visibleStyle}>
<EpisodeGrid
on:enter={scrollIntoView({ top: -32, bottom: 128 })}
on:mount={episodeCards.registrar}