timeline: hide scroller on empty content

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/803/head
Varun Patil 2023-08-30 19:49:55 -07:00
parent 6394301af5
commit 748ee361d3
1 changed files with 7 additions and 1 deletions

View File

@ -7,7 +7,7 @@
<TopMatter ref="topmatter" />
<!-- No content found and nothing is loading -->
<EmptyContent v-if="!loading && empty" />
<EmptyContent v-if="showEmpty" />
<!-- Main recycler view for rows -->
<RecycleScroller
@ -68,6 +68,7 @@
<!-- Managers -->
<ScrollerManager
ref="scrollerManager"
v-show="!showEmpty"
:rows="list"
:fullHeight="scrollerHeight"
:recycler="$refs.recycler"
@ -225,6 +226,11 @@ export default defineComponent({
empty(): boolean {
return !this.list.length && !this.dtmContent;
},
/** Show the empty content box and hide the scrollbar */
showEmpty(): boolean {
return !this.loading && this.empty;
},
},
methods: {