Compare commits

..

2 commits

Author SHA1 Message Date
Imbus
addbb820a3 Less goofy margins/padding for PostSegment 2024-03-12 17:59:58 +01:00
Imbus
bbae426c09 Passing in root prop for post comments 2024-03-12 17:59:28 +01:00
2 changed files with 3 additions and 3 deletions

View file

@ -27,8 +27,8 @@ export function PostSegment(props: { post: Post }): JSXElement {
const nav = useNavigate();
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-body">
<p class="break-words text-base-content md:px-6 md:pt-2">
<div class="card-body md:mx-6">
<p class="break-words text-base-content md:pt-2">
{props.post?.content}
</p>
<div class="card-actions justify-between">

View file

@ -24,7 +24,7 @@ export function SinglePost(): JSXElement {
<Show when={post()}>
<PostSegment post={post()!} />
<Show when={login_ctx.loggedIn()}>
<NewCommentInputArea parentPostId={parseInt(params.postid)} />
<NewCommentInputArea parentCommentId={null} parentPostId={parseInt(params.postid)} />
</Show>
<CommentSection postId={params.postid} />
</Show>