mirror of
https://github.com/emailerfacu-spec/minix-front.git
synced 2026-04-18 15:57:31 -03:00
fix: ahora si esta bien implementadas las animaciones de los post
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
import type { Post } from '../types';
|
import type { Post } from '../types';
|
||||||
import ModalEditar from './[perfil]/modalEditar.svelte';
|
import ModalEditar from './[perfil]/modalEditar.svelte';
|
||||||
import { updatePost } from '@/hooks/updatePost';
|
import { updatePost } from '@/hooks/updatePost';
|
||||||
|
import { fade, slide } from 'svelte/transition';
|
||||||
|
|
||||||
$effect(() => {
|
$effect(() => {
|
||||||
(async () => {
|
(async () => {
|
||||||
@@ -61,8 +62,10 @@
|
|||||||
</Content>
|
</Content>
|
||||||
</Card>
|
</Card>
|
||||||
{:else}
|
{:else}
|
||||||
{#each $posts as post}
|
{#each $posts as post (post.id)}
|
||||||
<PostCard {post} bind:postAModificar />
|
<div transition:slide>
|
||||||
|
<PostCard {post} bind:postAModificar />
|
||||||
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -109,8 +109,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="flex flex-col gap-2">
|
<div class="flex flex-col gap-2">
|
||||||
{#each $posts as post}
|
{#each $posts as post (post.id)}
|
||||||
<div out:slide>
|
<div transition:slide>
|
||||||
<PostCard {post} bind:postAModificar />
|
<PostCard {post} bind:postAModificar />
|
||||||
</div>
|
</div>
|
||||||
{/each}
|
{/each}
|
||||||
|
|||||||
Reference in New Issue
Block a user