aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.vue
diff options
context:
space:
mode:
authorShpuld Shpludson <shp@cock.li>2020-09-29 10:18:37 +0000
committerShpuld Shpludson <shp@cock.li>2020-09-29 10:18:37 +0000
commit91778a02766602b81ec8737282495aa4b5294d19 (patch)
treeda6bb6092acfb50b441f3afb5c4cc792e0b2b3a4 /src/components/timeline/timeline.vue
parent3781e521e64a59c4e38902601555ae01f99d9fce (diff)
parentf174f289a93e6bef1182a2face00bb809da49d18 (diff)
Merge branch 'feat/custom-virtual-scrolling' into 'develop'
Timeline virtual scrolling See merge request pleroma/pleroma-fe!1043
Diffstat (limited to 'src/components/timeline/timeline.vue')
-rw-r--r--src/components/timeline/timeline.vue6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue
index 2ff933e9..c1e2f44b 100644
--- a/src/components/timeline/timeline.vue
+++ b/src/components/timeline/timeline.vue
@@ -32,7 +32,10 @@
</div>
</div>
<div :class="classes.body">
- <div class="timeline">
+ <div
+ ref="timeline"
+ class="timeline"
+ >
<template v-for="statusId in pinnedStatusIds">
<conversation
v-if="timeline.statusesObject[statusId]"
@@ -54,6 +57,7 @@
:collapsable="true"
:in-profile="inProfile"
:profile-user-id="userId"
+ :virtual-hidden="virtualScrollingEnabled && !statusesToDisplay.includes(status.id)"
/>
</template>
</div>