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