fix: animation error with hidden items

This commit is contained in:
Xylight committed 2026-01-28 19:14:28 -08:00
1 parent eff2517440
commit 9b55e0da58
1 file changed
+5 -3
+5 -3
View File
@@ -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}