feat: Dynamic card sizes everywhere, reworked content requesting for EpisodePage

This commit is contained in:
Aleksi Lassila
2024-05-20 14:17:22 +03:00
parent 2d652ae9ba
commit 18dbc04710
13 changed files with 421 additions and 166 deletions

View File

@@ -43,14 +43,20 @@
>
<IconButton
on:click={() => {
carousel?.scrollTo({ left: scrollX - carousel?.clientWidth * 0.8, behavior: 'smooth' });
carousel?.scrollTo({
left: scrollX - (carousel?.clientWidth - 2 * 128 + 32),
behavior: 'smooth'
});
}}
>
<ChevronLeft size={20} />
</IconButton>
<IconButton
on:click={() => {
carousel?.scrollTo({ left: scrollX + carousel?.clientWidth * 0.8, behavior: 'smooth' });
carousel?.scrollTo({
left: scrollX + (carousel?.clientWidth - 2 * 128) + 32,
behavior: 'smooth'
});
}}
>
<ChevronRight size={20} />