fix navigation in post focus
This commit is contained in:
parent
ce1dfc388f
commit
6c19a4f3c9
4 changed files with 10 additions and 7 deletions
|
@ -3,8 +3,8 @@
|
|||
import Post from '$lib/ui/post/Post.svelte';
|
||||
|
||||
export let data;
|
||||
const main_post = data.posts[0];
|
||||
const replies = data.posts.slice(1);
|
||||
$: main_post = data.posts[0];
|
||||
$: replies = data.posts.slice(1);
|
||||
</script>
|
||||
|
||||
<div id="feed" role="feed">
|
||||
|
@ -13,11 +13,13 @@
|
|||
<span>just a moment...</span>
|
||||
</div>
|
||||
{:else}
|
||||
{#key data}
|
||||
<Post post_data={main_post} focused />
|
||||
<br>
|
||||
{#each replies as post}
|
||||
<Post post_data={post} />
|
||||
{/each}
|
||||
{/key}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue