Co-authored-by: Imbus <imbus64@users.noreply.github.com>
This commit is contained in:
commit
f9ef90e61f
2 changed files with 3 additions and 3 deletions
|
@ -28,11 +28,11 @@ export function PostSegment({ post } : { post: Post }): JSXElement {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class="card compact w-full flex-grow border-b-2 border-b-primary bg-base-200 text-base-content transition-all hover:bg-base-300">
|
<div class="card compact w-full flex-grow border-b-2 border-b-primary bg-base-200 text-base-content transition-all hover:bg-base-300">
|
||||||
<div class="card-body">
|
<div class="card-body md:mx-6">
|
||||||
<h3>
|
<h3>
|
||||||
{post.createdAt ?? "No Creation Date"}
|
{post.createdAt ?? "No Creation Date"}
|
||||||
</h3>
|
</h3>
|
||||||
<p class="break-words text-base-content md:px-6 md:pt-2">
|
<p class="break-words text-base-content md:pt-2">
|
||||||
{post.content}
|
{post.content}
|
||||||
</p>
|
</p>
|
||||||
<div class="card-actions justify-between">
|
<div class="card-actions justify-between">
|
||||||
|
|
|
@ -24,7 +24,7 @@ export function SinglePost(): JSXElement {
|
||||||
<Show when={post()}>
|
<Show when={post()}>
|
||||||
<PostSegment post={post()!} />
|
<PostSegment post={post()!} />
|
||||||
<Show when={login_ctx.loggedIn()}>
|
<Show when={login_ctx.loggedIn()}>
|
||||||
<NewCommentInputArea parentPostId={parseInt(params.postid)} />
|
<NewCommentInputArea parentCommentId={null} parentPostId={parseInt(params.postid)} />
|
||||||
</Show>
|
</Show>
|
||||||
<CommentSection postId={params.postid} />
|
<CommentSection postId={params.postid} />
|
||||||
</Show>
|
</Show>
|
||||||
|
|
Loading…
Reference in a new issue