mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-21 08:15:12 +02:00
feat: Dynamic card sizes everywhere, reworked content requesting for EpisodePage
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user