Skip to content

Commit

Permalink
Reorder elements for the PostThumbnail component
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioalvz committed Jul 18, 2024
1 parent e1636f6 commit d21e525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions components/PostThumbnail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@ export function PostThumbnail({ className, post }: PostThumbnailProps) {

return (
<div className={classes}>
<Heading el="p" size="m" className="PostThumbnail__Title">
<Link as={NextLink} href={post.url}>
{post.title}
</Link>
</Heading>

<ul className="PostThumbnail__Subheading">
<li className="PostThumbnail__Subheading__Item">
<Timestamp className="PostThumbnail__Timestamp" date={post.date} />
Expand All @@ -41,6 +35,12 @@ export function PostThumbnail({ className, post }: PostThumbnailProps) {
)}
</ul>

<Heading el="p" size="m" className="PostThumbnail__Title">
<Link as={NextLink} href={post.url}>
{post.title}
</Link>
</Heading>

<Text>{post.spoiler}</Text>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion components/PostThumbnail/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
}

.PostThumbnail__Title {
margin-bottom: 0.2em;
margin-bottom: 0.5em;
}

.PostThumbnail__Subheading {
Expand Down

0 comments on commit d21e525

Please sign in to comment.