fix: reactivity for badges

This commit is contained in:
James Xylight committed 2025-02-09 09:38:53 -08:00
1 parent 52bf2b835d
commit e084658c28
4 files changed
+26 -22

No files matched your search

@@ -65,7 +65,7 @@
posts = posts.toSpliced(index, 1)
}}
>
{#snippet badges()}
{#snippet extraBadges()}
{#if post.withCrossposts}
<button
onclick={() => {
@@ -234,13 +234,13 @@
: ''} -mx-4 sm:-mx-6 px-4 sm:px-6"
>
<Post
bind:post={posts[row.index]}
hideCommunity={community}
view={(posts[row.index]?.post.featured_community ||
posts[row.index]?.post.featured_local) &&
settings.posts.compactFeatured
? 'compact'
: settings.view}
{post}
class="transition-all duration-250"
onhide={() => {
posts = posts.toSpliced(row.index, 1)