-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update comment threads and tweak layout
- Loading branch information
Showing
4 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<script lang="ts"> | ||
import { CommunityPost } from '$lib/nostr'; | ||
import { Card, Heading } from 'flowbite-svelte'; | ||
import PostInteraction from '$lib/components/PostInteraction.svelte'; | ||
import { base } from '$app/paths'; | ||
import PostHeader from './PostHeader.svelte'; | ||
import type { NDKEvent } from '@nostr-dev-kit/ndk'; | ||
export let post: NDKEvent; | ||
export let showCommunity: boolean = false; | ||
</script> | ||
|
||
<div class="space-y-1"> | ||
<PostHeader {post} {showCommunity} /> | ||
<div class="flex flex-row w-auto"> | ||
<p class="break-all hyphens-auto line-clamp-5">{post.content}</p> | ||
</div> | ||
<PostInteraction {post} hideCommentsButton showReplyButton /> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters