fix: animation error with hidden items
This commit is contained in:
1 file changed
+5
-3
@@ -205,13 +205,16 @@
|
||||
{#snippet item(row)}
|
||||
<!--god svelte is gonna make me lose it-->
|
||||
{@const filter = new ReactiveState(filteredPosts[row])}
|
||||
{#if posts[row] && filter.value.action != 'hide'}
|
||||
<li
|
||||
in:fly={row < 7
|
||||
? { duration: 800, easing: expoOut, y: 24, delay: row * 50 }
|
||||
: { opacity: 1, duration: 0 }}
|
||||
data-index={row}
|
||||
class={['relative post-container', row < 7 && '']}
|
||||
class={[
|
||||
'relative post-container',
|
||||
filter.value.action == 'hide' && 'hidden',
|
||||
row < 7 && '',
|
||||
]}
|
||||
>
|
||||
<!--TODO make my component isolation not abysmal-->
|
||||
{#if filter.value.action == 'none'}
|
||||
@@ -243,7 +246,6 @@
|
||||
</Button>
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
{/snippet}
|
||||
</VirtualList>
|
||||
{/if}
|
||||
|
||||
Reference in new issue
Block a user