Skip to content

Commit

Permalink
actually fix unbearable mb
Browse files Browse the repository at this point in the history
  • Loading branch information
blackmann committed Jun 12, 2024
1 parent 261059e commit ecd2efa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions client/app/components/post-content.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import type { Media, Prisma } from "@prisma/client";
import { Link } from "@remix-run/react";
import clsx from "clsx";
import React from "react";
import type { Jsonify } from "type-fest";
import { Avatar } from "./avatar";
Expand Down Expand Up @@ -53,10 +52,7 @@ function PostContent({ post }: Props) {
</div>
</header>

<Tags
className={clsx({ "mb-4": post.tags.length })}
tags={post.tags}
/>
<Tags className="mb-4" tags={post.tags} />

<div className="-mt-2">
<Content content={post.content} />
Expand Down
4 changes: 2 additions & 2 deletions client/app/components/tags.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Post } from "@prisma/client";
import type { Post } from "@prisma/client";
import clsx from "clsx";
import React from "react";

Expand All @@ -17,7 +17,7 @@ function Tags({ className, tags }: Props) {
});
}, [tags]);

if (!tags.length) {
if (!parsedTags.length) {
return null;
}

Expand Down

0 comments on commit ecd2efa

Please sign in to comment.