mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-12-01 16:28:06 +09:00
Only load timeline in active slide
This commit is contained in:
parent
609aa0aa6a
commit
22ed3f47a6
@ -44,6 +44,9 @@
|
||||
"
|
||||
@swiper="setSwiperRef"
|
||||
@slide-change="onSlideChange"
|
||||
:touch-angle="25"
|
||||
:threshold="10"
|
||||
:centeredSlides="true"
|
||||
>
|
||||
<swiper-slide
|
||||
v-for="index in timelines"
|
||||
@ -51,6 +54,7 @@
|
||||
:virtual-index="index"
|
||||
>
|
||||
<XTimeline
|
||||
v-if="index == timelines[swiperRef.activeIndex]"
|
||||
ref="tl"
|
||||
:key="src"
|
||||
class="tl"
|
||||
|
@ -113,6 +113,10 @@ html, body {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.swiper-slide {
|
||||
height: unset !important;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
cursor: pointer;
|
||||
|
Loading…
Reference in New Issue
Block a user