Merge pull request 'Only load timeline in active swiper slide' (#10200) from Freeplay/calckey:swiper into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10200
This commit is contained in:
Kainoa Kanter 2023-05-26 01:58:24 +00:00
commit ceae7341d4
14 changed files with 18 additions and 13 deletions

View file

@ -243,7 +243,7 @@ function focusFooter(ev) {
</script>
<style lang="scss" scoped>
:deep(a) {
:deep(a, button) {
position: relative;
z-index: 2;
}

View file

@ -7,7 +7,7 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="600" :margin-min="20">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -7,7 +7,7 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="600" :margin-min="16" :margin-max="32">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -7,7 +7,7 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="700">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -8,7 +8,7 @@
/></template>
<div class="lznhrdub">
<MkSpacer :content-max="1200">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -8,7 +8,7 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="1200">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -12,7 +12,7 @@
:margin-min="16"
:margin-max="32"
>
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -8,7 +8,7 @@
/></template>
<div>
<MkSpacer :content-max="800">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -9,7 +9,7 @@
/>
</template>
<MkSpacer :content-max="800">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -7,7 +7,7 @@
:tabs="headerTabs"
/></template>
<MkSpacer :content-max="700">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -8,7 +8,7 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="800">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -8,7 +8,7 @@
:display-back-button="true"
/></template>
<MkSpacer :content-max="800">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"

View file

@ -32,7 +32,7 @@
/>
</div> *v-else on next div* -->
<div class="tl _block">
<swiper
<swiper :touch-angle="25" :threshold="10" :centeredSlides="true"
:modules="[Virtual]"
:space-between="20"
:virtual="true"
@ -51,6 +51,7 @@
:virtual-index="index"
>
<XTimeline
v-if="index == timelines[swiperRef.activeIndex]"
ref="tl"
:key="src"
class="tl"

View file

@ -113,6 +113,10 @@ html, body {
padding: 0;
}
.swiper-slide {
height: unset !important;
}
a {
text-decoration: none;
cursor: pointer;