Add recycler fade

old-stable24
Varun Patil 2022-10-18 11:43:17 -07:00
parent e4c9f821fc
commit 1a697d7671
1 changed files with 7 additions and 0 deletions

View File

@ -16,6 +16,7 @@
<RecycleScroller
ref="recycler"
class="recycler"
:class="{ 'empty': list.length === 0 }"
:key="state"
:items="list"
:emit-update="true"
@ -972,6 +973,12 @@ export default class Timeline extends Mixins(GlobalMixin, UserConfig) {
.recycler {
height: 300px;
width: calc(100% + 20px);
transition: opacity 0.2s ease-in-out;
&.empty {
opacity: 0;
transition: none;
}
}
.recycler .photo {